[REBOL] protect-system caveat Re:(3)

2000-08-21 Thread brian . hawley

About the bad interaction between help and protect-system,
Grant wrote:
>I agree this is a help issue.  I didn't notice before
>that if I did protect-system before any help, the help
>would still work, but sure enough, I did
>protect-system 1st thing, and help worked
>afterwards...

Help defines a function in it called type-name, when it
doesn't declare type-name to be local. Every time help
runs it trounces the global word type-name.

I've told Feedback. Another bug caught! :)

Brian Hawley




[REBOL] protect-system caveat Re:(2)

2000-08-21 Thread grantwparks

I agree this is a help issue.  I didn't notice before
that if I did protect-system before any help, the help
would still work, but sure enough, I did
protect-system 1st thing, and help worked
afterwards...

--- [EMAIL PROTECTED] wrote:
> Hi Grant
> 
> This looks like a bug in 'help.  You should send it
> to feedback.  The
> problem is caused by doing the
> 
> >> help protect-system
> 
> before doing protect-system.
> 
> Done in the other order, everything works OK.
> snip
> Script: "User Preferences"
> (31-Oct-1999/18:54:30-8:00)
> >> protect-system
> >> help protect-system
> USAGE:
> PROTECT-SYSTEM
> 
> DESCRIPTION:
>  Protects all system functions and the system
> object from redefinition.
>  PROTECT-SYSTEM is a function value.
> >> first: 5
> ** Script Error: Word first is protected, cannot
> modify.
> ** Where: first: 5
> >>
> 
> BTW You can use 'source to look at the code for both
> 'help and
> 'protect-system.  If you do
> 
> >>source protect-system
> 
> before doing 'protect-system, it does not cause this
> problem, which is one
> reason I think the bug is in 'help.
> 
> HTH
> -Larry
> 
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 18, 2000 12:01 PM
> Subject: [REBOL] protect-system caveat
> 
> 
> > Setting protect-system seems to incapacitate
> 'help':
> >
> > >> help protect-system
> > USAGE:
> > PROTECT-SYSTEM
> >
> > DESCRIPTION:
> >  Protects all system functions and the system
> > object from redefinition.
> >  PROTECT-SYSTEM is a function value.
> > >> protect-system
> > >> help protect-system
> > ** Script Error: Word type-name is protected,
> cannot
> > modify.
> > ** Where: type-name: func [value] [
> > value: mold type? :value
> > clear back tail value
> > join either find "aeiou" first value ["an "]
> ["a
> > "] value
> > ]
> > if
> > >>
> >
> > Bummer, huh?
> >
> > __
> > Do You Yahoo!?
> > Send instant messages & get email alerts with
> Yahoo! Messenger.
> > http://im.yahoo.com/
> >
> 


__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/




[REBOL] protect-system caveat Re:

2000-08-18 Thread larry

Hi Grant

This looks like a bug in 'help.  You should send it to feedback.  The
problem is caused by doing the

>> help protect-system

before doing protect-system.

Done in the other order, everything works OK.
snip
Script: "User Preferences" (31-Oct-1999/18:54:30-8:00)
>> protect-system
>> help protect-system
USAGE:
PROTECT-SYSTEM

DESCRIPTION:
 Protects all system functions and the system object from redefinition.
 PROTECT-SYSTEM is a function value.
>> first: 5
** Script Error: Word first is protected, cannot modify.
** Where: first: 5
>>

BTW You can use 'source to look at the code for both 'help and
'protect-system.  If you do

>>source protect-system

before doing 'protect-system, it does not cause this problem, which is one
reason I think the bug is in 'help.

HTH
-Larry


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 18, 2000 12:01 PM
Subject: [REBOL] protect-system caveat


> Setting protect-system seems to incapacitate 'help':
>
> >> help protect-system
> USAGE:
> PROTECT-SYSTEM
>
> DESCRIPTION:
>  Protects all system functions and the system
> object from redefinition.
>  PROTECT-SYSTEM is a function value.
> >> protect-system
> >> help protect-system
> ** Script Error: Word type-name is protected, cannot
> modify.
> ** Where: type-name: func [value] [
> value: mold type? :value
> clear back tail value
> join either find "aeiou" first value ["an "] ["a
> "] value
> ]
> if
> >>
>
> Bummer, huh?
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>




[REBOL] protect-system caveat

2000-08-18 Thread grantwparks

Setting protect-system seems to incapacitate 'help':

>> help protect-system
USAGE:
PROTECT-SYSTEM

DESCRIPTION:
 Protects all system functions and the system
object from redefinition.
 PROTECT-SYSTEM is a function value.
>> protect-system
>> help protect-system
** Script Error: Word type-name is protected, cannot
modify.
** Where: type-name: func [value] [
value: mold type? :value
clear back tail value
join either find "aeiou" first value ["an "] ["a
"] value
]
if
>>

Bummer, huh?

__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/




[REBOL] protect-system ?? Re:

2000-02-25 Thread allenk

Hi Timmy,

Check your version number (type rebol/version), if it is pre 2.2.0.xx then
you need to upgrade. Protect-system is a v2.2.0.xx command. Type upgrade to
get the latest version.

Cheers,

Allen K


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 26, 2000 3:15 PM
Subject: [REBOL] protect-system ??


> Hi  I wrote protect-system in %user.r
> but I got an error saying it has no value.
>
> Here is what the guide said:
>
> If protect-system is set in the user .r file, then all words set within
> REBOL will be
> protected from modification because the user .r file is called by REBOL
> just after
> initializing itself.
>
> timmy
>
>



[REBOL] protect-system ??

2000-02-25 Thread tim781

Hi  I wrote protect-system in %user.r
but I got an error saying it has no value.

Here is what the guide said:

If protect-system is set in the user .r file, then all words set within
REBOL will be
protected from modification because the user .r file is called by REBOL
just after
initializing itself.

timmy