[REBOL] Re: General REBOL questions
From: rotenca:telvia:it at: 16-Jun-2002 20:03
Hi Brian
> 3) When I fire up REBOL it brings up the REBOL desktop. I assume the
> desktop is a REBOL script, but is this script imbedded into the
> executable itself?
Yes, like all the mezzanine code, the network handlers, bitmap images and so
on.
> If so, what if you want to modify it?
All the stuff of desktop is in the block
ctx-viewtop
which becomes an objects when you first execute the function desktop. Here it
is the source:
desktop: func [][
if block? ctx-viewtop [ctx-viewtop: context ctx-viewtop]
ctx-viewtop/init-desktop
do-events
]
> Shouldn't
> there just be some kind of default startup-script defined and the user
> can make that whatever they want without burdening the executable with a
> built-in script that they may not want to use anyways?
If you want to remove all the desktop code you can do:
ctx-viewtop: none
desktop: none
You should gain a little more than 100 Kb, after the command
recycle
But the 118 words added by the desktop code to the global context cannot been
recycled.
---
Ciao
Romano