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

[REBOL] Re: Script Error: get_func_name has no value

From: joel:neely:fedex at: 12-Apr-2002 10:55

Hi, Richard, You need at least one space after the concluding colon in a SET-WORD! value (unless there's another syntactic cue, such as the beginning of a block or string). See below... COFFRE Richard FTO wrote:
> Hi, > > I have the following code : > > REBOL[] > get_func_name:make function! [chaine]
That line must read: get_func_name: make function! [chaine]
> [ > guillemet: make string! {"} > > remove/part chaine 6 > foo: copy/part chaine 1 1 > if foo == guillemet > [ > remove/part chaine 1 > ] > ;supprimer les 2 derniers caractères > clear skip tail chaine -2 > > return chaine > ] > > test:{"123456fonction rearzer r r12"}
That line really should read test: {"123456fonction rearzer r r12"} although the space isn't mandatory because of the opening brace for the string. Getting in the habit of inserting spaces will: - make your code easier to read - keep your fingers from leaving out non-optional spaces -jn-