On 10 September 2014 21:58, Iain Buclaw <ibuc...@gdcproject.org> wrote: > On 9 September 2014 19:40, ketmar via D.gnu <d.gnu@puremagic.com> wrote: >> On Mon, 8 Sep 2014 08:13:46 +0100 >> "Iain Buclaw via D.gnu" <d.gnu@puremagic.com> wrote: >> >> ok, i started. moved toDebug() and most of toDt() to visitor. yet >> Expression::toElem() scares me alot (wow, it's 300kb!). but i hope to >> finish it in week or two (i have some free time now and can spend it on >> porting). >> >> i'm keeping patches somewhat separated (but it's hard to separate 'em >> properly). no tests done for now, it merely compiles without errors. >> >> posting this just to let people know that i'm working on it, so they >> can avoid double-work. > > Thanks. > > I also intend to use the conversions as an excuse to reform the code > into a more C++ coding style convention[1]. You can look at toir.cc > to get a general feel of this[2]. >
You'll notice that most functions in toir.cc have an empty comment above the function ('//') - this is because eventually it will be all documented (good), if not documented during the conversion (better).