guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: end marker


From: Paul Jarc
Subject: Re: end marker
Date: Wed, 11 Feb 2004 16:31:10 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

address@hidden wrote:
> On Wed, Feb 11, 2004 at 08:53:38PM +0100, Andreas Rottmann wrote:
>> I assume (quit) will do the job in most cases

It won't work if you read the whole file before running any of it
(e.g. guile -s function script.scm).

> Well, __END__ does have some nice/strange/ugly/perlish semantic ;-)
> The parser stops reading at '\n__END__' but leaves the filehandle open.
> The script itself can then continue reading from this filehandle.

No, that's __DATA__.  __END__ just tells the interpreter to pretend
it's EOF.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]