Re: [Chicken-users] How to tell csc to call main?
Hi, Christian Kellermann writes: > Call (main) at toplevel. If you want to change the behaviour depending > on whether the code is compiled or interpreted you can use cond-expand > testing for feature 'compiling alternatively pass an option like this to csc: -postlude '(main (command-line-arguments))' Untested but you get the idea. Actually, it would probably make sense to have an option to that effect for csc, too. Moritz signature.asc Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] How to tell csc to call main?
Hi! * Sascha Ziemann [141219 14:43]: > How to tell csc to call main in the same way like "csi -ss"? > csc does not seem to have a -ss option. Call (main) at toplevel. If you want to change the behaviour depending on whether the code is compiled or interpreted you can use cond-expand testing for feature 'compiling HTH, Christian -- May you be peaceful, may you live in safety, may you be free from suffering, and may you live with ease. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] How to tell csc to call main?
Hi, How to tell csc to call main in the same way like "csi -ss"? $ cat distribution.scm #! /usr/bin/csi -ss (define (main args) (display "main\n")) $ ./distribution.scm main $ csc distribution.scm $ ./distribution $ csc does not seem to have a -ss option. Regards, Sascha ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users