foo.scm includes bar.scm
in bar.scm, is there any command I cay say that will tell foo.scm to ignore the rest of the file?
I don't want to commnent out all the second half of bar.scm
nor do I want to put a lambda around it (complaints about define)
is there someway I can access a continuation or something and jump out of the include?
thanks!
Afficher les réponses par date
in bar.scm, is there any command I cay say that will tell foo.scm to ignore the rest of the file?
I don't want to commnent out all the second half of bar.scm
Do you object to doing that because loads of ;; are boring, because you don't know #| (That 'you) (can) ((comment several) lines) |# Or for some other reason?
is there someway I can access a continuation or something and jump out of the include?
Maybe you could you hijack the reader macro in a wrapper to ##include that would make, say, #EOF behave like "dump everything you read from now", and then restore the original reader it once the inclusion is over?
P!
I would probably just separate your bar.scm file in two files: foo.scm and foo#.scm where foo#.scm contains the stuff that should be shared (like macros) between files via an include special form. Then, you just need to add (include "bar#.scm") in both bar.scm and foo.scm and your case is solved.
David
lowly coder wrote:
foo.scm includes bar.scm
in bar.scm, is there any command I cay say that will tell foo.scm to ignore the rest of the file?
I don't want to commnent out all the second half of bar.scm
nor do I want to put a lambda around it (complaints about define)
is there someway I can access a continuation or something and jump out of the include?
thanks!
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list