It looks like the problem was the space in n2: >> n1: 123 == 123 >> n2: "n1 " == "n1 " >> get 'n1 == 123 >> get 'n2 == "n1 " >> get get 'n2 ** Script Error: get expected word argument of type: any-word object none ** Near: get get 'n2 >> get to-word get 'n2 ** Script Error: n1 has no value ** Near: get to-word get 'n2 >> get to-word trim get 'n2 == 123 >> get to-word trim n2 == 123
> > Hi List, > > Recently I worked with get to retrieve a value indirectly as in the > following exemple : > >>> n1: 125 > == 125 >>> n2: "n1 " <-- Suppose a parsed value that is the name of an >>> identifier. > == "n1 " >>> get 'n1 > ==125 > > but this time REBOL 1.3 seems to refuse the following sequence of > statements and I must admit that I can't understand why ? > >>> n1 > == 125 > >>> get 'n1 > == 125 > >>> n2 > == "n1 " > >>> join "'" n2 > == "'n1 " > >>> reduce join "'" n2 > == "'n1 " > >>> to-word reduce join "'" n2 > == 'n1 > >>> type? to-word reduce join "'" n2 > == word! > >>> get to-word reduce join "'" n2 > > ** Script Error: 'n1 has no value > ** Where: halt-view > ** Near: get to-word reduce join "'" >>> > > Is 'n1 not equal to 'n1 from its assembled parts ??? > I know that n1 has the value 125. > > It seems that it's not the case but I can't explain the issue. > > Thanks for your explanations > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
