Binderoo - we're open sourcing our binding system
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 16 10:53:20 PDT 2016
On Tuesday, 16 August 2016 at 12:30:14 UTC, Ethan Watson wrote:
> https://github.com/Remedy-Entertainment/binderoo
>
> So I just announced at GDC Europe in my talk. We're open
> sourcing our binding system.
>
> It's currently a complete reengingeering of the system, and
> it's incomplete at the moment. It will be documented as the
> features become more solidified.
>
> I'll also write some more about it once I've had a chance to
> unwind. The talk seemed to go well at least.
Looking through your slides, I noticed that there's no need to
pass `typeof(this)` to GenerateStubsFor.
mixin template GenerateStubsFor()
{
private alias ThisT = typeof(this);
pragma(msg, ThisT);
}
struct TestStruct
{
mixin GenerateStubsFor; //Prints "TestStruct"
}
class TestParent
{
mixin GenerateStubsFor; //Prints "TestParent"
}
class TestChild: TestParent
{
mixin GenerateStubsFor; //Prints "TestChild"
}
More information about the Digitalmars-d
mailing list