Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Paths, Arrays, Assignment and other bothersome things

From: larry::ecotope::com at: 16-Dec-2001 19:01

Hi James, The problem is that the path notation does not allow an element to indicate both a GET and a SET. This will supposedly be fixed in the next version of REBOL. You could try: poke grid/:x/:y z random true ;only get-words in path or poke pick pick grid x y z random true or if the indices need to be calculated: poke pick pick grid x + 5 y + 5 z + 5 random true POKE and PICK are the native block element manipulation functions and produce faster code than the path notation. BTW FOR is vary slow, it is better to use REPEAT or FOREACH when possible. HTH -Larry