Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #265 > unrolled thread

where to take an object address?

Started byvincent_belliard <vincent@famillebelliard.fr>
First post2011-09-13 09:23 -0700
Last post2011-09-13 09:23 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.compilers


Contents

  where to take an object address? vincent_belliard <vincent@famillebelliard.fr> - 2011-09-13 09:23 -0700

#265 — where to take an object address?

Fromvincent_belliard <vincent@famillebelliard.fr>
Date2011-09-13 09:23 -0700
Subjectwhere to take an object address?
Message-ID<11-09-015@comp.compilers>
Hello,

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:
http://code.google.com/p/entity-language/wiki/objects_addresses

Vincent Belliard

[toc] | [standalone]


Back to top | Article view | comp.compilers


csiph-web