Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copying objects

2 views
Skip to first unread message

Poilenkov Andrey

unread,
Jun 6, 2003, 3:48:20 AM6/6/03
to
Hi all.
Can anybody explain, how to copy created non visual objects with all values
of variables.
For example:
n_object lnv_object
n_object lnv_object_pointer
lnv_object = create n_object
lnv_object.is_title = 'Title'
//I need a copy of this object, not a pointer.
lnv_object_pointer= lnv_object // This is unsuitable :(((


Philip_Salgannik

unread,
Jun 6, 2003, 11:24:31 AM6/6/03
to
You'll have to roll your own deep copy.

Poilenkov Andrey

unread,
Jun 9, 2003, 5:19:48 AM6/9/03
to
Все эти методы понятны, я думал, что существует, какой-нибудь полухакерский
способ для копирования объектов, ведь в конечном итоге объект PB
представляет из себя объекты C++, а они прекрасно копируются:((
"Konstantin Goldobin" <kg...@marvel.vrn.ru> wrote in message
news:uM$O6mkLDHA.341@forums-1-dub...
> Do what Philip said or switch to autoinstantiated objects.
>
> "Poilenkov Andrey" <poil...@advantum.ru> wrote in message
> news:uILHJCALDHA.345@forums-1-dub...

> > Hi all.
> > Can anybody explain, how to copy created non visual objects with all
> values
> > of variables.
> > For example:
> > n_object lnv_object
> > n_object lnv_object_pointer
> > lnv_object = create n_object
> > lnv_object.is_title = 'Title'
> > file://I need a copy of this object, not a pointer.

Philip Salgannik

unread,
Jun 9, 2003, 8:45:02 AM6/9/03
to
Кто сказал, что они "прекрасно копируются" сами? Copy Constructor писать
надо...

--
This is a FAQ, read Help, then search
www.groups.google.com/advanced_group_search

pbm_thisusuallydoesnothelp:-))
Philip Salgannik

"Poilenkov Andrey" <poil...@advantum.ru> wrote in message

news:uyP5ElmLDHA.218@forums-2-dub...

Konstantin Goldobin

unread,
Jun 9, 2003, 1:37:35 AM6/9/03
to
Do what Philip said or switch to autoinstantiated objects.

"Poilenkov Andrey" <poil...@advantum.ru> wrote in message
news:uILHJCALDHA.345@forums-1-dub...

> Hi all.
> Can anybody explain, how to copy created non visual objects with all
values
> of variables.
> For example:
> n_object lnv_object
> n_object lnv_object_pointer
> lnv_object = create n_object
> lnv_object.is_title = 'Title'

> file://I need a copy of this object, not a pointer.

0 new messages