[Chicken-users] ReĀ : Re: package fmt crash on Windows 7 64-bits
Hi Christian, I got some internet issues recently, but everything is fine now, i am back in the real world :D I reproduced the issue on Windows 7 64 bits. Build script: http://paste.call-cc.org/paste?id=ebeda32cf764bda4ece3eb4e93abc86f3e865594 Build log: http://paste.call-cc.org/paste?id=995e680243eb90eb01b23f1986a8050060f5326f Slime install script: http://paste.call-cc.org/paste?id=5ae5c548a8322d157bdc1c24bcd0edc673118ef7 Slime install log: http://paste.call-cc.org/paste?id=b10640f67bfd6ebe45ba411260573d24e99a29e8 Slime use log: http://paste.call-cc.org/paste?id=d1265c2b3443ab5ad9ef14a689d88dc49684a4bf I believe it's a 64-bit related issue, because I didn't reproduce this problem on Windows 32 bits with the same steps (another toolchain and ARCH=x86). Regards, Pascal - Mail d'origine -De: Christian Kellermann ck...@pestilenz.orgAgrave;: combier@laposte.netCc: chicken-users@nongnu.orgEnvoyeacute;: Wed, 10 Dec 2014 10:33:02 +0100 (CET)Objet: Re: [Chicken-users] package fmt crash on Windows 7 64-bits Hi Pascal! * comb...@laposte.net comb...@laposte.net [141209 16:54]: I made some build of chicken on 64 bits and 32 bits. How do you build this exactly? 2. In the case we use the retrieve option of chicken-install to download the sources of the packages, how to install the local files locally? cd into the directory and run chicken-install without arguments should do it. Kind regards, Christian -- May you be peaceful, may you live in safety, may you be free fromsuffering, and may you live with ease. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Export a defstruct - Short Version?
Hi all, I have a module with the very simple following code: (module point (point) (import scheme) (import defstruct) (defstruct point x y)) This code obviously doesn't compile because the export list is wrong --if I change the export list to, for example, (make-point) it compiles fine. I'm aware a defstruct is basically a shortcut to create a bunch of functions and the standard way to export it is exporting all the functions one by one. Now, I'm wondering if there is an easier/shorter way to do this (something like a wild card)? I'd appreciate any help/hint. TIA, -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) signature.asc Description: OpenPGP digital signature ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Chicken program: How to clean up the working directory
I'm working on a simple project which I created using chicken-hatch. Thanks to the author of this egg, all's fine and going smoothly. However, I just wonder if there is a way to clean up the working directory of the program in a way that make clean does? Removing object files, binary files and other compilation left-over stuff. -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) signature.asc Description: OpenPGP digital signature ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Replace an element in a list
What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and take-right the right way to do it? TIA, -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) signature.asc Description: OpenPGP digital signature ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Replace an element in a list
There are setters for car and cdr, so let's say you're at a position where you want to replace the head of a list, you can then just do: (set! (car some-list) some-value) -Dan On Sat, Dec 13, 2014 at 3:59 PM, Bahman Movaqar bah...@bahmanm.com wrote: What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and take-right the right way to do it? TIA, -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Replace an element in a list
Bahman Movaqar scripsit: What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and take-right the right way to do it? Yes, that's how I'd do it. Daniel Leslie scripsit: There are setters for car and cdr, so let's say you're at a position where you want to replace the head of a list, you can then just do: (set! (car some-list) some-value) That's how you do it when you *do* want to mutate the list, or you can use list-set! if you have it (as R7RS does). -- John Cowan http://www.ccil.org/~cowanco...@ccil.org You annoy me, Rattray! You disgust me! You irritate me unspeakably! Thank Heaven, I am a man of equable temper, or I should scarcely be able to contain myself before your mocking visage. --Stalky imitating Macrea ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Replace an element in a list
*facepalm* Yes, my way is the way not to do it; thanks to my reading comprehension failure. ;) -Dan On 14-12-13 06:44 PM, John Cowan wrote: Bahman Movaqar scripsit: What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and take-right the right way to do it? Yes, that's how I'd do it. Daniel Leslie scripsit: There are setters for car and cdr, so let's say you're at a position where you want to replace the head of a list, you can then just do: (set! (car some-list) some-value) That's how you do it when you *do* want to mutate the list, or you can use list-set! if you have it (as R7RS does). ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Replace an element in a list
Thanks Daniel and John. I found split-at while reading the docs last night. Along with let-values it seems like a natural answer to my questions. What do you folks think? -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) On 12/14/2014 03:29 AM, Bahman Movaqar wrote: What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and take-right the right way to do it? signature.asc Description: OpenPGP digital signature ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users