I would have expected [3 2 1]
not [1 1 1] nor [3 3 3].
But I find it difficult to answer what I want, because the function argument
x seems like it's in a bit of a no-mans land (I'm thinking of :x )
My brain hurts now. :)
Brett.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 5:03 PM
Subject: [REBOL] Bug in 'use? Re:(3)
> Hi,
>
> > Hi Ladislav, 15-Jul-2000 you wrote:
> >
> > >you are right, the problem is caused by a context
> manipulation -
> > >Use unsets your Middle every time it gets executed. My
> suggestion
> > >is to not use Use in recursive functions, while this problem
> > >doesn't get corrected.
> >
> > Judging from the nature of recursiveness, that's a little hard,
> isn't it? ;-)
> >
> > Do you know if this problem has already been reported to
> feedback?
> >
> > Kind regards,
> > --
> > Ole Friis <[EMAIL PROTECTED]>
> >
> > Amiga is a trademark of Amiga Inc.
> >
>
> You should probably report it to feedback. BTW, did you succeed to
> sort the permutations correctly?
>
> One more question for everybody. What do you want to see after
> executing:
>
> blk: copy []
> probeblk: func [] [
> prin mold blk
> prin ": "
> print mold reduce blk
> ]
> recfun: func [x] [
> append blk 'x
> either x <= 1 [
> probeblk
> ] [
> recfun x - 1
> ]
> ]
> recfun 3
> probeblk
>
> Regards
> Ladislav
>