Linker-hacking out the D runtime

Iain Buclaw via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Dec 18 04:57:08 PST 2016


On 18 December 2016 at 03:37, Mike via Digitalmars-d-announce
<digitalmars-d-announce at puremagic.com> wrote:
> On Sunday, 18 December 2016 at 00:04:54 UTC, sarn wrote:
>
>> I thought I'd write something up to help other people experiment with this
>> stuff:
>> https://theartofmachinery.com/2016/12/18/d_without_runtime.html
>
>
> Thanks for this.
>
> I abandoned D sometime ago largely because of
> https://issues.dlang.org/show_bug.cgi?id=14758 (but there were other
> reasons), so your blog post is interesting to me.  It is unfortunate that we
> have to resort to such hackery, but its nice to have such tools at our
> disposal regardless.
>

As a response to my last message in that thread, the changes for
classinfo generation is now ready to go in master.  However I already
have ideas for future implementation that is not so naive when it
comes to looking up fields to assign data.  How does a kind of tagging
system sound?

i.e:

class TypeInfo_Class
{
    @name
    string classname;

    @init
    byte[] initializer;
}


More information about the Digitalmars-d-announce mailing list