Classes or stucts :: Newbie
spir
denis.spir at gmail.com
Mon Dec 20 06:24:56 PST 2010
On Mon, 20 Dec 2010 03:11:49 -0800
Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> Now, you could conceivably have a language where all of its objects were
> actually pointers, but they were treated as value types. So,
>
> B b;
> A a = b;
>
> would actually be declaring
>
> B* b;
> A* a = b;
>
> underneath the hood, except that the assignment would do a deep copy and
> allocate the appropriate meemory rather than just copying the pointer like would
> happen in a language like C++ or D. Perhaps that's what Oberon does. I have no
> idea. I have never heard of the language before, let alone used it.
I don't know how Oberon works. But I'm sure that its records are plain values, _not_ "pointed" under the hood. And their methods all are virtual (they have a virtual method table). I have no more details, sorry.
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the Digitalmars-d-learn
mailing list