Will D ever get a reference type?

Bill Baxter dnewsgroup at billbaxter.com
Fri Jul 27 13:49:38 PDT 2007


Will D ever get a reference type?

I don't think pointers are really sufficient.
The handy 'foo.bar' == '(*foo).bar' attribute access is nice, but it 
doesn't allow you to really manipulate values and pointers to values 
interchangeably.

For instance, if I have an int pointer, x,  I can't do  (12 + x * 2) and 
  get integer math.  I get pointer math (if not an error).

--bb



More information about the Digitalmars-d mailing list