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

Funny bug. Or?

 [1/4] from: hallvard:ystad:helpinhand at: 17-Nov-2002 21:58


Hi. Look at this console session of mine:
>> help to-tag
USAGE: TO-TAG value DESCRIPTION: Converts to tag value. TO-TAG is a function value. ARGUMENTS: value -- Value to convert (Type: any)
>> protect-system >> help to-tag
** Script Error: Word type-name is protected, cannot modify ** Where: help ** Near: type-name: func [value] [ value: mold type? :value clear back tail value join either find "aeiou" first value ["an "] ["a "] value ] if
>>
~H

 [2/4] from: greggirwin:mindspring at: 17-Nov-2002 15:01


Hi Hallvard,
>>> protect-system >>> help to-tag
HY> ** Script Error: Word type-name is protected, cannot modify HY> ** Where: help HY> ** Near: type-name: func [value] [ HY> value: mold type? :value HY> clear back tail value HY> join either find "aeiou" first value ["an "] ["a "] value HY> ] It looks like HELP should define TYPE-NAME as a local, which it isn't. I'd send it to feedback. -- Gregg

 [3/4] from: carl:cybercraft at: 18-Nov-2002 14:09


On 18-Nov-02, Gregg Irwin wrote:
> Hi Hallvard, >>>> protect-system
<<quoted lines omitted: 8>>
> It looks like HELP should define TYPE-NAME as a local, which it > isn't. I'd send it to feedback.
The odd thing is I have protect-system in my user.r, yet "help to-tag" doesn't give the above error until after I do a protect-system at the Console. -- Carl Read

 [4/4] from: joel:neely:fedex at: 18-Nov-2002 15:16


Hi, Carl, Try HELP with something else after doing PROTECT-SYSTEM. As Gregg pointed out, a quick look at ?? HELP indicates that HELP is trying to define a function named TYPE-NAME it the argument to HELP is a non-string, non-word value. However, since TYPE-NAME is not local to HELP, that makes each such evaluation of HELP a redefinition of the (global) function TYPE-NAME. As Gregg said, looks like a bug. -jn- Carl Read wrote:
> On 18-Nov-02, Gregg Irwin wrote: > > Hi Hallvard,
<<quoted lines omitted: 18>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- ---------------------------------------------------------------------- Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted