[REBOL] Re: [object] [VID] Some other questions
From: AJMartin::orcon::net::nz at: 24-Dec-2003 22:49
> 5) On the webpage about objects one passage mentioned that "sub-objects"
don't get cloned- what does that mean? Reading that I would expect that all
objects within an object aren't available when I create an object on the
basis of that object. But I seem to be able to use it anyway. Maybe I am
getting something wrong here ?
>> Outer: make object! [
[ m: 123
[ Inner: make object! [
[ m: 456
[ ]
[ ]
>> Outer/Inner/m
== 456
>> Another: make Outer [
[ m: "Another!"
[ ]
>> Another/m
== "Another!"
>> Another/Inner/m
== 456
>> Another/Inner/m: "Another's Inner!"
== "Another's Inner!"
>> Outer/Inner/m
== "Another's Inner!"
Can you see that there's only one object inside the objects refered to by
'Outer and 'Another? It's like copying pointers in C, with out copying the C
string.
> 7) Trying to find a solution to the problem above I looked around the
REBOL webpages and searched for a possibility to create threads - there
doesn't seem to be anything like that - how is "parallel processing"
achieved in REBOL ?
Cooperative multi-tasking. There is only the one thread in Rebol.
> I read it would be possible to create images on the fly and work with
these then - is it possible to store an entire (view) layout within such an
image ?
Yes. There's an example or two of this on the Rebol site.
> 13) I didn't see any designated function to set pixels at certain
coordinates in a layout- my workaround was using the line word - with 1
width/height. How is this really done ?
There is a pixel dialect for Rebol; but it seems to be concealed to casual
visitors. :-/
I'm sure that some one with more VID experience will be able to answer more
of these questions.
Andrew J Martin
Speaking in tongues and performing miracles.
ICQ: 26227169
http://www.rebol.it/Valley/
http://valley.orcon.net.nz/
http://Valley.150m.com/