D - more power than (really) needed !
Oskar Linde
oskar.lindeREM at OVEgmail.com
Thu Mar 9 06:07:26 PST 2006
Deewiant wrote:
> Walter Bright wrote:
>> The trouble with OOP is, well, not everything is an object. For example,
>> take the trig function sin(x). It's not an object. Of course, we could bash
>> it into being an object, but that doesn't accomplish anything but
>> obfuscation.
>>
>
> sin(x) isn't an object, but x is, and sin can be made a property of that object.
How would you define a binary mathematical function then? atan2(y,x) and
binominal(n,k) for instance.
/Oskar
More information about the Digitalmars-d
mailing list