Does D provide automatic dereferencing for accessing members through pointers?

Jesse Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 27 19:45:08 PDT 2014


On Wednesday, 27 August 2014 at 19:25:42 UTC, Gary Willoughby 
wrote:
> I've taken a look in the std lib and the second form is used a 
> lot. Why don't you need to dereference the pointer 'foo' to 
> reach its member 'bar'?

Walter didn't want "foo->bar" so we have "foo.bar"


More information about the Digitalmars-d-learn mailing list