Trivial (but not bikeshed please) question of style…

via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 28 07:46:24 PDT 2014


On Tuesday, 28 October 2014 at 13:59:10 UTC, bearophile wrote:
> Ola Fosheim Grøstad:
>
>> "X.action(Y)" will in most OO languages mean do "action" to 
>> object "X", but "parent.send(results)" means the opposite?!

Poorly formulated… :P

> Why the opposite?

You are instructing the object to send the input somewhere:
"postoffice.send(letter,person)"
"object.send(message,recipient)"
"system.send(X,Y)"
"send(X,Y)"



More information about the Digitalmars-d mailing list