Re: [q-lang-users] Newbie questions and comments
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2005-03-18 14:55:48
|
Albert Graef <Dr....@t-...> writes: > > with no file:line-number, and, critically, execution continues > > regardless. > > Hmm, yes, the portion of the interpreter which executes the init code is > a bit simplistic right now. The byte code of an initialization should > contain a reference to the corresponding source line (IIRC that's not the > case right now), then the interpreter could give more useful feedback. > > But what would the proper behaviour for a failed match in a def be? > Really exit the interpreter? Raise an exception? I think that right now > the interpreter simply abandons execution of the remaining init code of > the script but continues to the read-eval-print loop anyway, so that you > can try to find out what went wrong. I think that this behaviour is > appropriate when running in interactive mode, but I agree that it's not > very useful in batch mode. Yeah, that could be reasonable. > Ok, maybe that's a nice opportunity to try out the (still virgin) Bug > tracker at http://sourceforge.net/projects/q-lang/ ;-) If you have the > time, please enter a bug report there, then I'll see what I can do about > this for the next release. Duly raised. Commiserations on your first sf.net bug :) ~Tim -- <http://spodzone.org.uk/> |