[DGD] Strange clone_object behaviour
Tim Blommerde
T.Blommerde at et.tudelft.nl
Sat Sep 12 22:33:52 CEST 1998
Greetings people,
Sorry to bother you all again, but I've stumbled upon some strange
behaviour, or more likely, I'm totally wrong in a few assumptions. For as
far as I know, clone_object() returns a clone of the argument. And the
object_name() of a clone should be <master_file>#<id>, right? Well, if
these assumptions are right, can one of you then explain to my why the
following happens:
object_name(clone_object(FTP_USER)) = "/kernel/obj/ftp_user"
instead of
object_name(clone_object(FTP_USER)) = "/kernel/obj/ftp_user#123"
which I thought would happen?
Can someone please enlighten me a bit in the above mentioned behaviour,
'cause I'm not sure anymore about when something is a clone and when not.
The _F_create() function in the auto object also assumes the '#' part for
clones, which is why my objects aren't called with create(1), but with
create(0). And this kinda screws up the objects I was writing.
Thanks in advance,
Tim
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list