-> and :: operators

Idan Arye via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 11 06:50:16 PDT 2015


On Sunday, 11 October 2015 at 13:05:41 UTC, Warwick wrote:
> 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.

You should have elaborated then. The other guys talked about the 
invention of reference types, so I assumed you did as well.


More information about the Digitalmars-d mailing list