Will D ever get a reference type?
Nick Sabalausky
a at a.a
Fri Jul 27 15:40:43 PDT 2007
You know you can just dereference the pointer like (12 + *x * 2), right? (Sorry if you already did). Or are you saying you don't like needing to dereference it like that?
Bill Baxter Wrote:
> 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