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

[REBOL] Re: Why is the lit-word! datatype! not working

From: antonr::lexicon::net at: 22-Oct-2005 12:37

Hi Gerard, Look at this: a: 1 ;== 1 a ; you type a word ;== 1 ; it is evaluated and result returned 'a ; you type a lit-word ;== a ; it is evaluated and result returned (a word) to-lit-word 'a ; you type a lit-word, it is evaluated to a word ;== 'a ; but then you converted it back to a lit-word So, in your MY-MAP function below, the 'first lit-word is converted to a word *before* it is passed to the function. The solution is to have MY-MAP accept f as a word!, eg: my-map: func [f [word!] ... Anton.