bearophile can say "i told you so" (re uint->int implicit conv)

Jonathan M Davis jmdavisProg at gmx.com
Fri Mar 29 05:19:11 PDT 2013


On Friday, March 29, 2013 13:10:02 Adam D. Ruppe wrote:
> On Friday, 29 March 2013 at 09:26:33 UTC, Benjamin Thaut wrote:
> > Who says you can't ? In fact you can using the NVI idiom:
> Is that fairly new in D? I'm almost certain I tried it and it
> didn't work when I originally wrote this code (which was a couple
> years ago).

It'll work with classes and protected. It's _supposed_ to work with interfaces 
and private according to TDPL, but AFAIK, that hasn't been implemented yet 
(though it might be; I don't know).

- Jonathan M Davis


More information about the Digitalmars-d mailing list