Why can't we make reference variables?

Jonathan M Davis jmdavisProg at gmx.com
Tue Aug 28 22:08:11 PDT 2012


On Wednesday, August 29, 2012 06:46:25 Tommi wrote:
> The weird thing is that you can use a member access operator with
> a pointer (without explicitly dereferencing the pointer first).

Well, you clearly haven't done much pointers to structs in D, or that wouldn't 
be surprising at all. . always implicitly dereferences the pointer, which 
pretty much makes the -> operator completely unnecessary.

- Jonathan M Davis


More information about the Digitalmars-d mailing list