Anyone come up with some cool algorithms/templates for D lately?

Jesse Phillips jessekphillips at gmail.com
Fri Apr 18 07:51:15 PDT 2008


On Fri, 18 Apr 2008 09:15:31 -0400, Michel Fortin wrote:

> On 2008-04-17 23:32:03 -0400, Bill Baxter <dnewsgroup at billbaxter.com>
> said:
> 
>> Psst -- don't tell anyone but ...
>> opDot... coming to a DMD near you soon.
> 
> opDot? I'd like to hear why it would be named this way instead of
> opMember, opFwd, or anything telling what usage the operator is about
> instead of what it looks like. There's a reason Walter has choosen
> opAdd, opDiv, opSlice, etc. instead of opPlus, opSlash, opBrakets, etc.
> and I feel it was a very good idea. Why move away from this?
> 
> I know there's a precedent (opStar), but I'd like to hear the rationale
> behind this choice too (why isn't it called opDeref?).

Wouldn't it still be legal to use the asterisk as multiply or deferef? I 
understand the reason for +, but you really can't say * isn't both 
multiply and dereference.

Maybe the dot could be used as a member call, and just to say that there 
should be something here but don't know what. :)



More information about the Digitalmars-d mailing list