Re: Bug in last line of source file
Daniel Berstein wrote:
>
>
> I once got the same problem when "inventing" InstallKit. If you attach data
> at the end of a bounded file, the last line of your program should be
> "abort(0) [ENTER]". If you don't do this the Euphoria interpreter just tries
> to go on reading the source file... and voila! you got an error. If you use
> a comment mark ("--"), it work for a certain amout of data. If the data is
> too long the interpreter complains "line too long" or something like that.
>
Daniel,
Thanks for the info. I was coding on the idea that Euphoria defaulted to
a 0 on exit. Regardless, I like your solution of abort(0) with a "for
sure" CrLf pair at the end of the file. I will incorporate that line in
all my code from now on.
--
Terry Constant
constant at flash.net
|
Not Categorized, Please Help
|
|