Current version of D.
Jonathan M Davis
jmdavisProg at gmx.com
Sat Jul 6 01:03:01 PDT 2013
On Saturday, July 06, 2013 09:43:24 TommiT wrote:
> On Saturday, 6 July 2013 at 07:18:03 UTC, Jonathan M Davis wrote:
> > On Saturday, July 06, 2013 09:12:55 Joseph Rushton Wakeling
> >
> > wrote:
> >> Are the differences from TDPL documented anywhere?
> >
> > Not that I'm aware of. And I'd have to read it again to compile
> > a full list, though I could probably come up with most of them
> > off the top of my head.
> >
> > - Jonathan M Davis
>
> I read TDPL again quite recently. And although it's missing a
> bunch of language features and there's a bunch of typos, I can't
> think of any language feature mentioned there that's changed
> since then (and I probably just don't know about it). So, I'd be
> interested in seeing that list.
The main one that's changed is pure. TDPL basically describes strong purity,
whereas we now also have weak purity.
The main two that simply haven't yet been implemented as described are
multiple alias this-es, and synchronized classes.
Some of what TDPL says about shared is wrong (e.g. about it adding write
barriers), but exactly what we're going to do about shared at this point is up
for debate. We need it, and we're going to have it, but some of the details
need to be further ironed out (e.g. it's unlikely that it'll ever have write
barriers, because that would be too expensive and IIRC isn't even portable
outside of x86/x86_64). As part of that, synchronized may or may not end up
quite as described in TDPL.
Beyond that, I'd probably have to re-read the book. I don't think that there
are any other major differences, but there may be some minor ones. Most of
those should have been caught by the errata though.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list