Thread overview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 07, 2004 DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
It's now possible to do assymmetrical operator overloads with commutative operators like +. And it's now possible to create a << stream operator overloading in D. Not that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!). http://www.digitalmars.com/d/changelog.html |
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Package attribute! Yeee-haw!
On Mon, 07 Jun 2004 14:33:37 -0700, Walter wrote:
> It's now possible to do assymmetrical operator overloads with commutative operators like +.
>
> And it's now possible to create a << stream operator overloading in D. Not that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!).
>
> http://www.digitalmars.com/d/changelog.html
|
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote: >It's now possible to do assymmetrical operator overloads with commutative >operators like +. > >And it's now possible to create a << stream operator overloading in D. Not >that I endorse such a use of operator overloading for non-arithmetic >purposes, but it's now possible (without doing free operator functions or >needing ADL, either!). > >http://www.digitalmars.com/d/changelog.html > > Wow, Walter you must have been visited by an angle or something last night. You've done a complete backflip on so many issues. Not that I mind, its a good thing you keep an opened mind. default arguments yay. -- -Anderson: http://badmama.com.au/~anderson/ |
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <ca2nau$1ath$1@digitaldaemon.com>, Walter says... > >It's now possible to do assymmetrical operator overloads with commutative operators like +. > >And it's now possible to create a << stream operator overloading in D. Not that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!). Great timing :) I had just started looking at streams today. Just to clarify, it looks like the old rules would not evaluate b.opfunc_r(a) if a.opfunc is defined, whether or not there was an overload for a.opfunc(b). Do I have this right? Sean |
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | "Sean Kelly" <sean@f4.ca> wrote in message news:ca2pn3$1et4$1@digitaldaemon.com... > In article <ca2nau$1ath$1@digitaldaemon.com>, Walter says... > > > >It's now possible to do assymmetrical operator overloads with commutative operators like +. > > > >And it's now possible to create a << stream operator overloading in D. Not > >that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!). > > Great timing :) I had just started looking at streams today. Just to clarify, > it looks like the old rules would not evaluate b.opfunc_r(a) if a.opfunc is > defined, whether or not there was an overload for a.opfunc(b). Do I have this > right? Right. |
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <ca2nau$1ath$1@digitaldaemon.com>, Walter says... > >It's now possible to do assymmetrical operator overloads with commutative operators like +. > >And it's now possible to create a << stream operator overloading in D. Not that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!). > >http://www.digitalmars.com/d/changelog.html > > Walter: Thxs! For the "Added default arguments to function parameters." :)) Now I can pull out all my wrapper functions...this is some really Great News!! <*Wonders*> To you think Phobos.std.string could get a non-case sensitive version of find (ifind) and rfind (irfind) added to it sometime in the near future? It would be very useful (even if it just does ASCII). Thxs for your reply in advance. :) |
June 07, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | J Anderson wrote: ... > default arguments yay. Hip! Hip! Hooray! -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/ |
June 08, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | In article <ca2oi1$1d41$1@digitaldaemon.com>, J Anderson <REMOVEanderson@badmama.com.au> wrote: > Wow, Walter you must have been visited by an angle or something last night. Angles? Dude, that's sick. I can't help but picture some poor Flatlander's 2-dimensional body parts strewn about... :-) All of us healthy-minded people know Walter was really visited by Mr. Hyper-sphere from 4-space. |
June 08, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to David L. Davis | "David L. Davis" <SpottedTiger@yahoo.com> wrote in message news:ca2u66$1lui$1@digitaldaemon.com... > <*Wonders*> To you think Phobos.std.string could get a non-case sensitive > version of find (ifind) and rfind (irfind) added to it sometime in the near > future? It would be very useful (even if it just does ASCII). Thxs for your > reply in advance. :) Do you want to write one and donate it? |
June 08, 2004 Re: DMD 0.92 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to David L. Davis | In article <ca2u66$1lui$1@digitaldaemon.com>, David L. Davis says... > >In article <ca2nau$1ath$1@digitaldaemon.com>, Walter says... >> >>It's now possible to do assymmetrical operator overloads with commutative operators like +. >> >>And it's now possible to create a << stream operator overloading in D. Not that I endorse such a use of operator overloading for non-arithmetic purposes, but it's now possible (without doing free operator functions or needing ADL, either!). >> >>http://www.digitalmars.com/d/changelog.html >> >> >Walter: Thxs! For the "Added default arguments to function parameters." :)) Now I can pull out all my wrapper functions...this is some really Great News!! > ><*Wonders*> To you think Phobos.std.string could get a non-case sensitive >version of find (ifind) and rfind (irfind) added to it sometime in the near >future? It would be very useful (even if it just does ASCII). Thxs for your >reply in advance. :) > > > Why not tolower() both of the strings ? |
Copyright © 1999-2021 by the D Language Foundation