www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - rt/object.d

reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
The class definition for Object in the runtime object.d is 
"empty". Where can I find a description of the structure and 
fields of "class Object"?
Oct 29 2020
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Thursday, 29 October 2020 at 14:03:46 UTC, Ola Fosheim Grøstad 
wrote:
 The class definition for Object in the runtime object.d is 
 "empty". Where can I find a description of the structure and 
 fields of "class Object"?
http://dpldocs.info/experimental-docs/object.Object.html
Oct 29 2020
parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Thursday, 29 October 2020 at 14:06:08 UTC, Adam D. Ruppe wrote:
 On Thursday, 29 October 2020 at 14:03:46 UTC, Ola Fosheim 
 Grøstad wrote:
 The class definition for Object in the runtime object.d is 
 "empty". Where can I find a description of the structure and 
 fields of "class Object"?
http://dpldocs.info/experimental-docs/object.Object.html
That is the same as the class decl, I meant the internals like vtable/typeinfo.
Oct 29 2020
next sibling parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Thursday, 29 October 2020 at 16:02:34 UTC, Ola Fosheim Grøstad:
 That is the same as the class decl, I meant the internals like 
 vtable/typeinfo.
I don't know what you mean. typeinfo isn't a part of Object and the vtable is built from those virtual methods. If you mean the *module* object instead of class Object, I have the docs for that too: http://dpldocs.info/experimental-docs/object.html and like there's TypeInfo in there http://dpldocs.info/experimental-docs/object.TypeInfo.html The internal rt namespace is also on my website: http://dpldocs.info/experimental-docs/rt.html but of course that's private so you can't import it from user code.
Oct 29 2020
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Thursday, 29 October 2020 at 16:09:00 UTC, Adam D. Ruppe wrote:
 The internal rt namespace is also on my website:
 http://dpldocs.info/experimental-docs/rt.html

 but of course that's private so you can't import it from user 
 code.
Thanks, that might be useful later :-).
Oct 29 2020
prev sibling parent reply kinke <noone nowhere.com> writes:
On Thursday, 29 October 2020 at 16:02:34 UTC, Ola Fosheim Grøstad 
wrote:
 I meant the internals like vtable/typeinfo.
https://dlang.org/spec/abi.html#classes
Oct 29 2020
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Thursday, 29 October 2020 at 16:09:10 UTC, kinke wrote:
 On Thursday, 29 October 2020 at 16:02:34 UTC, Ola Fosheim 
 Grøstad wrote:
 I meant the internals like vtable/typeinfo.
https://dlang.org/spec/abi.html#classes
Thanks!
Oct 29 2020