----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 18 January 2000 05:07
Subject: [REBOL] Modify an array element Re:


> Hi
>
> >>> a/1/2: "this works"
> >== [none "this works" none]
> >>> a/:c/:c2: "this does not work"
> >** Syntax Error: Invalid word -- :c2:.
> >** Where: (line 1) a/:c/:c2: "this does not work"
>
> this has been reported before, and I think Carl announced it will be fixed
> an upcoming version. For now you can say, for instance:
>
> >> a: array [10 10]
> >> b: 1
> >> c: 2
> >> change at a/:b c "this works"
> >> a
> == [[none "this works" none none none none none none none none] [none none
> none none none none none none none none] [none none none...
>
> Hope this helps
>
> ;- Elan >> [: - )]
>
>

You can also try declaring your array with 1 extra dimesion and always using
the last element as 1.
So  a/:c1/:c2/1 works.

Cheers Phil

Reply via email to