Migrating dmd to D?
Daniel Murphy
yebblies at nospamgmail.com
Tue Mar 5 04:21:15 PST 2013
"Iain Buclaw" <ibuclaw at ubuntu.com> wrote in message
news:mailman.235.1362482490.14496.digitalmars-d at puremagic.com...
>
> I think C++ classes would be more ill to implement than what I see
> initially in that link.
>
All that pull request implements is some extended C++ mangling, for windows,
and not very well.
> Mangling is another problem as well. I've seen differing C++ compilers
> have subtle differences. I'll try to find one discrepancy between D and
> g++.
Mangling is a large part of the work, but is really not that hard. I do
think we need to move the windows c++ mangling into the frontend. most of
the g++ mangling code is already there.
The list is pretty short:
- global functions
- global variables
- static members functions
- virtual member functions
- normal member functions
- static member variables
- normal member variables
If we have the mangling and abi working for all of those, I think that
should be enough to implement the glue layer in C++ with all the ast classes
written in D.
No need for the messy stuff like stack allocation semantics and
constructors/destructors.
More information about the Digitalmars-d
mailing list