DMD 0.166 release
Oskar Linde
olREM at OVEnada.kth.se
Sat Sep 2 01:51:26 PDT 2006
BCS wrote:
> Oskar Linde wrote:
>> Jarrett Billingsley wrote:
>>
>>
>>>"Kirk McDonald" <kirklin.mcdonald at gmail.com> wrote in message
>>>news:ed7ddg$6r2$1 at digitaldaemon.com...
>>>
>>>
>>>>Nice. I'll have to play with the improved IFTI support.
>>>>
>>>
>>>Hm. I missed this new feature. What does it include? There's not even
>>>a link to a conversation, and I don't remember any threads about this.
>>
>>
>> It is really just a small patch that enables implicit function template
>> instantiation for member function and operator templates. It should work
>> identically to how IFTI works for free functions.
>>
>> It should open up quite a few door. Here is a quick demo I hacked
>> together of how compile time dimensionality checking can be implemented:
>>
>> http://www.csc.kth.se/~ol/physical.d
>>
>> /Oskar
>>
>>
>
>
> Hot, Dog!!!
>
>
> This is a project I was hoping to get to a LONG time ago. (The d code
> side, not the getting-D-to-do-this side)
>
>
> Best I came up with was a Runtime version.
>
> http://www.webpages.uidaho.edu/~shro8822/unit.d
>
> Mind if I try to graft in a "few" ;) more units and some unittest?
Certainly not. Feel free to go ahead. :)
But as I said, this is just a quick hack. Some improvements would be a
generic Quantity supporting an arbitrary number of dimensions and rational
exponents.
/Oskar
More information about the Digitalmars-d-announce
mailing list