[REBOL] Re: forall error
From: joel:neely:fedex at: 22-May-2001 11:02
Charles Wardell wrote:
> When I do a forall I get this error. Thanks in advance for your help..
> ** Internal Error: Stack overflow
> ** Near: not tail? get word
> get: func [myVar] [
> forall myDB [
> rec: first myDB
> if rec/fType = myVar [
> remove myDB
If you have a minute, would you try this alternative?
get: func [myVar /local walkDB] [
while [not tail? walkDB] [
rec: first walkDB
either rec/fType = myVar [
walkDB: next walkDB
I don't have time to test it right now, but I suspect that your
problem comes from mutating the same series that FORALL is trying
to walk through. The only thing I'm doing different in the
snippet above is explicitly managing the remove-or-step process.