copy deep
[1/8] from: rotenca::telvia::it at: 17-Jul-2001 14:05
Does exists a copy-deep function which duplicate object (or block which
include themself)?
---
Saluti
Romano Paolo Tenca
[2/8] from: jelinem1:nationwide at: 17-Jul-2001 12:43
--------------------------------------------------------------------------
copy/deep will copy series within a series
USAGE:
COPY value /part range /deep
DESCRIPTION:
Returns a copy of a value.
COPY is an action value.
ARGUMENTS:
value -- Usually a series (Type: series port bitset)
REFINEMENTS:
/part -- Limits to a given length or position.
range -- (Type: number series port)
/deep -- Also copies series values within the block.
--------------------------------------------------------------------------
To replicate objects within objects, what we need is a make/deep. AFAIK We
don't have this, yet.
- Michael Jelinek
From: "Romano Paolo Tenca" <[rotenca--telvia--it]>@rebol.com on 07/17/2001
07:05 AM
Please respond to [rebol-list--rebol--com]
Sent by: [rebol-bounce--rebol--com]
To: "rebol" <[rebol-list--rebol--com]>
cc:
Subject: [REBOL] copy deep
Does exists a copy-deep function which duplicate object (or block which
include themself)?
---
Saluti
Romano Paolo Tenca
[3/8] from: rotenca:telvia:it at: 17-Jul-2001 20:09
Copy/deep crashes when copying reflexive objects.
romano
-----Messaggio Originale-----
Da: <[JELINEM1--nationwide--com]>
A: <[rebol-list--rebol--com]>
Data invio: 17 lug 2001 19:43
Oggetto: [REBOL] Re: copy deep
[4/8] from: lmecir:mbox:vol:cz at: 18-Jul-2001 12:57
Hi,
> Does exists a copy-deep function which duplicate object (or block which
> include themself)?
>
> ---
> Saluti
> Romano Paolo Tenca
>
No, but you can define something like that using the method you can find in
http://www.sweb.cz/LMecir/evaluation.html
[5/8] from: max:ordigraphe at: 18-Jul-2001 12:00
> -----Original Message-----
> From: [rebol-bounce--rebol--com]
<<quoted lines omitted: 4>>
> Subject: [REBOL] copy deep
> Does exists a copy-deep function which duplicate object
copy/deep
> (or block which include themself)?
I can see this leading to an instant infinite loop...
be carefull
-Max
[6/8] from: max:ordigraphe at: 18-Jul-2001 13:18
> -----Original Message-----
> From: Romano Paolo Tenca
>
> Copy/deep crashes when copying reflexive objects.
probably cause you access self in a circular loop...
-Max>
[7/8] from: max:ordigraphe at: 18-Jul-2001 13:16
> To replicate objects within objects, what we need is a
> make/deep. AFAIK We
> don't have this, yet.
I might post a function which does this as part of my object toolbox...
will have to see if I have time to make a clean version of the
conceptual code I have at home for this...
familly and home tend to take away the free time you have in life. ;-)
-Max
[8/8] from: rotenca:telvia:it at: 19-Jul-2001 2:57
"Maxim Olivier-Adlhoch" <[max--ordigraphe--com]>
> I might post a function which does this as part of my object toolbox...
> will have to see if I have time to make a clean version of the
> conceptual code I have at home for this...
Thank you, I have already written it. I'll post here if someone want to debug
it.
> familly and home tend to take away the free time you have in life. ;-)
A good thing... more than copy-deep... :-)
> -Max
ciao
romano
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted