Fully dynamic d by opDotExp overloading

Nick Sabalausky a at a.a
Fri Apr 17 23:54:22 PDT 2009


"Nick Sabalausky" <a at a.a> wrote in message 
news:gsbru0$rb6$1 at digitalmars.com...
> "Don" <nospam at nospam.com> wrote in message 
> news:gsbovk$nbj$1 at digitalmars.com...
>>
>> The problem is a lack of notification at compile time. Runtime exceptions 
>> are the problem, not the solution.
>>
>> By the way, if the opDot is a template (per Andrei's suggestion), then if 
>> it is marked as nothrow, you have a guarantee that if it compiles, it's 
>> valid.
>> nothrow opDot(char [])(args...) doesn't have any of the problems which 
>> Nick et. al have mentioned.
>
> Ok, now *that* is something I can be happy with.
>

In fact, now that I think about it, as long as the member name was required 
to be a template parameter, I'd be perfectly happy with it (and wouldn't 
even want nothrow to be required).

I think that's slightly different from what Andrei's advocated though. 
Unless I misread something, Andrei, you want it to be possible for the 
member name to be *either* a template or non-template param, right? 





More information about the Digitalmars-d mailing list