Thread overview | |||||
---|---|---|---|---|---|
|
October 24, 2012 static and non-static version of the one function | ||||
---|---|---|---|---|
| ||||
Hi! Tell me please,are there any way to declare two versions of one member function, something like this: int a; int.init //static version a.init //non-static version |
October 24, 2012 Re: static and non-static version of the one function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | On 2012-10-24 21:32, Zhenya wrote: > Hi! > Tell me please,are there any way to declare two versions of one member > function, > something like this: > > int a; > > int.init //static version > a.init //non-static version No, not currently. http://d.puremagic.com/issues/show_bug.cgi?id=3345 -- /Jacob Carlborg |
October 24, 2012 Re: static and non-static version of the one function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 24 October 2012 at 20:02:20 UTC, Jacob Carlborg wrote:
> On 2012-10-24 21:32, Zhenya wrote:
>> Hi!
>> Tell me please,are there any way to declare two versions of one member
>> function,
>> something like this:
>>
>> int a;
>>
>> int.init //static version
>> a.init //non-static version
>
> No, not currently.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=3345
Thank you,understood.
|
Copyright © 1999-2021 by the D Language Foundation