Rebol copy semantics
[1/6] from: robert::muench::robertmuench::de at: 18-Oct-2003 10:16
Hi, even doing Rebol for several years now, I'm hit by the question
hmm... is this now a reference or a copy?
. Especially in complicated
cases, where you work a lot with blocks, inserts, copying etc. it's easy
to loos track (at least IMO).
Things get even more complicate as some functions seem to create implicit
copies as well. So, for series you get a reference for scalar types you
get the value (see my other posting).
Is there a how-to/tutorial/... that collects all this information in one
doc? If not, do you think it would make sense to write such a thing? Robert
[2/6] from: antonr:iinet:au at: 18-Oct-2003 20:07
You should write a script that tests each function
in a list to see if it makes a copy or not.
The results could then be generated into a document
form for easy reading.
It would be easy to update then, when rebol changes
(new functions added, old functions changed).
Anton.
[3/6] from: lmecir:mbox:vol:cz at: 18-Oct-2003 16:17
Hi Robert,
> Hi, even doing Rebol for several years now, I'm hit by the question
> "hmm... is this now a reference or a copy?". Especially in complicated
<<quoted lines omitted: 5>>
> Is there a how-to/tutorial/... that collects all this information in one
> doc? If not, do you think it would make sense to write such a thing?
Robert
I wrote a few articles:
http://www.compkarori.com/vanilla/display/Rebol+Series
or
http://www.fm.vslib.cz/~ladislav/rebol/identity.html
or check:
http://www.compkarori.com/vanilla/display/Rebol+Tutorials
Regards
-L
[4/6] from: atruter:labyrinth:au at: 19-Oct-2003 10:12
> Hi, even doing Rebol for several years now, I'm hit by the question
> "hmm... is this now a reference or a copy?".
Looks like you need to use the (non-existant) reference? and a copy?
functions ;)
Regards,
Ashley
[5/6] from: robert:muench:robertmuench at: 20-Oct-2003 16:49
On Sat, 18 Oct 2003 16:17:35 +0200, Ladislav Mecir <[lmecir--mbox--vol--cz]>
wrote:
> I wrote a few articles:
Hi Ladislav, I know and these articles are very valuable even sometimes
(at least for me) hard to follow. While reading your documents I often
think back at university times ;-) How about making them easiert to
understand for the Rebol novice? I would like to help with this. Let me
know. Robert
[6/6] from: lmecir:mbox:vol:cz at: 21-Oct-2003 11:05
I am interested and I appreciated help from Colin, Pat, or others. The best
may be to just send me questions (or suggestions) and I will try to
incorporate the answers to the text. Other approaches are possible too.
TIA
-L
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted