Thread overview
rt/object.d
Oct 29, 2020
Adam D. Ruppe
Oct 29, 2020
Adam D. Ruppe
Oct 29, 2020
kinke
October 29, 2020
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"?

October 29, 2020
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

October 29, 2020
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.
October 29, 2020
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.
October 29, 2020
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
October 29, 2020
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!
October 29, 2020
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 :-).