Maybe it would be useful with a script that checks scripts
for common beginner mistakes like this and warns the scripter.
Maybe someone has written one already?
Gisle
On Tue, 23 May 2000 [EMAIL PROTECTED] wrote:
>
> And again.. (we discuss the sense of this sometimes :)
>
> list: []
> is something like static in c
> use
> list: copy[]
> in rebol
>
> Volker
>
> > Hi!
> >
> > I have the following code:
> >
> > num: 30
> > to: load %file
> > until [
> > list: []
> > print length? list
> > loop num [
> > elem: first to
> > if elem [ append list elem ]
> > to: next to
> > ]
> > print length? list
> > print "---"
> > tail? to
> > ]
> >
> > It gives
> >
> > 0
> > 30
> > ---
> > 30
> > 60
> > ---
> > 60
> > 90
> > ---
> > 90
> > 120
> > ---
> > 120
> > 150
> >
> > Shouldn't list length be set to zero by
> > list: []
> > ???
> >
> > Felix P�tsch
> >
> > --
> > http://www.ph-cip.uni-koeln.de/~puetsch
> > Of course I'm crazy, but that doesn't mean I'm wrong.
> >
> >
> >
> >
>
>