questions on class definitions and mixins

Andrea Fontana nospam at example.com
Mon Feb 10 07:49:19 PST 2014


On Monday, 10 February 2014 at 15:41:06 UTC, Adam D. Ruppe wrote:
> On Monday, 10 February 2014 at 15:35:00 UTC, Patrick D. Jeeves 
> wrote:
>> [...]
>> Is this because it isn't possible to do such things, or 
>> because it would be rather pointless to do so compared to 
>> simpler approaches, (in this case calling the C function 
>> output by flex/bison).
>
> I think it is just that nobody has tried yet. There are parser 
> generators that work at compile time in D though 
> https://github.com/PhilippeSigaud/Pegged for example

I think it's not the only reason. I've tried to do something 
similar but not all libraries can be used at compile time. E.g: 
let's try to read a xml file at compile time...



More information about the Digitalmars-d-learn mailing list