-> and :: operators

Warwick via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 11 06:05:39 PDT 2015


On Sunday, 11 October 2015 at 09:43:04 UTC, Idan Arye wrote:
> On Friday, 9 October 2015 at 19:48:39 UTC, Dmitry Olshansky 
> wrote:
>
> This is the innovation in D(regarding this issue) - that on 
> struct types, the same operator is used for BOTH the value type 
> and the pointer to it.

At the risk of sounding like a broken record the Delphi variant 
of Object Pascal started doing that some time around Delphi 4 or 
Delphi 5 IIRC. (So mid to late 90s).

IE. You accessed members with the dot operator whether it was an 
object (like D Delphi's objects are heap based / reference 
semantics), a struct, or a pointer to a struct.




More information about the Digitalmars-d mailing list