Classes in D and C++
Andy Little
andy at servocomm.freeserve.co.uk
Mon Mar 5 11:32:51 PST 2007
BCS Wrote:
> Andy Little wrote:
> > Lionello Lunesu Wrote:
> >
> >
> >>SomeType st = 2;//construction
> >>
> >>No need for constructors ;)
> >
> >
> > OK, To explain why I don't want to allow this syntax I need to explain som of how the quan library works.
> >
> > Its main purpose is to catch errors in dimensional analysis.
> >
>
> Take a look at this lib. It does most of what I see your lib doing and
> might give you some ides on how to make yours work in D.
>
> http://www.csc.kth.se/~ol/physical.d
Hey, that looks interesting, certainly a lot leaner than my Quan library. The example made me laugh as it seems to be a D version of one of the examples in Quan. It will be interesting to study as I know the domain and so it will certainly help me to understand a bit more about D.
Are there any plans to flesh it out? ( though it looks pretty functional already). Seems like it could be a nice example for D.
regards
Andy Little
More information about the Digitalmars-d
mailing list