where to take an object address?

vincent_belliard <vincent@famillebelliard.fr>
Tue, 13 Sep 2011 09:23:45 -0700 (PDT)

          From comp.compilers

Related articles
where to take an object address? vincent@famillebelliard.fr (vincent_belliard) (2011-09-13)
| List of all articles for this month |

From: vincent_belliard <vincent@famillebelliard.fr>
Newsgroups: comp.compilers
Date: Tue, 13 Sep 2011 09:23:45 -0700 (PDT)
Organization: Compilers Central
Keywords: code, design, OOP, question
Posted-Date: 16 Sep 2011 00:50:48 EDT


In many languages, when you allocate an object, the first byte of the
object is the first byte allocated. However, when the object carries
virtual information (for example a pointer on a virtual table), the
first byte of the object data is not the first byte allocated.

In Entity (http://code.google.com/p/entity-language), the object
address is in the middle of the object. That means that the object
address is between the virtual data and the object data.

With this, a reference on an object or the reference on the data have
the same value.

As with other object oriented languages you can extend classes (adding
some field) but you can also extend the virtual part.

You can find a documentation of this here:

Vincent Belliard

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.