Re: [q-lang-users] "and then" and stack usage
Brought to you by:
agraef
From: <Dr....@t-...> - 2004-02-03 10:40:39
|
ww wrote: > I've been exploring Q recently and I've noticed that "and then" doesn't > seem to run in constant space. From it's definition (in the docs), I was > expecting that it could reuse the stack frame but that doesn't seem to be > the case. Am I missing something? No, you're right, the compiler doesn't do any tail call optimization with (and then) or (or else) right now. Hmm, that would certainly be useful. This case is a little more involved than (||), I have to think about it ... Albert -- Dr. Albert Gr"af Email: Dr....@t-..., ag...@mu... WWW: http://www.musikwissenschaft.uni-mainz.de/~ag |