February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | Lionello Lunesu wrote:
> Michiel wrote:
>
>> Deewiant wrote:
>>
>>>>>>>> The documentation sais that all types should have the property
>>>>>>>> .stringof, but it doesn't seem to work. Has it been renamed? Or doesn't
>>>>>>>> it exist (anymore)?
>>>>>>>
>>>>>>> In what case does it not work?
>>>>>>
>>>>>> Any case. I tried this:
>>>>>
>>>>> That works just fine here, DMD 1.007
>>>>
>>>> Ah, I have DMD 1.003. Would that make the difference?
>>>>
>>> Seeing as .stringof was added in DMD 1.005, it might. ;-)
>>
>>
>> Strange. It wasn't even so long ago that I downloaded the compiler. Has
>> stringof only existed for a month or so?
>
>
> 17 days to be exact :)
The bleeding edge doesn't last vary long around here. <g>
|
February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to Deewiant | Deewiant wrote:
> Michiel wrote:
>> Ah, I have DMD 1.003. Would that make the difference?
>>
>
> Seeing as .stringof was added in DMD 1.005, it might. ;-)
>
I think that it would be good if the docs could mention with which compiler version a feature was added.
|
February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to torhu | torhu wrote:
> I think that it would be good if the docs could mention with which compiler version a feature was added.
It does in the changelog.
|
February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> torhu wrote:
>> I think that it would be good if the docs could mention with which compiler version a feature was added.
>
> It does in the changelog.
Not for .stringof it doesn't :)
By the way, it would be nice if .stringof for an enum member would return the actual enum stringized. Will this be possible?
L.
|
February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | Lionello Lunesu escribió: > Walter Bright wrote: >> torhu wrote: >>> I think that it would be good if the docs could mention with which compiler version a feature was added. >> >> It does in the changelog. > > Not for .stringof it doesn't :) > > By the way, it would be nice if .stringof for an enum member would return the actual enum stringized. Will this be possible? And it's not very practical to read the doc and searching the changelog to see where that particular feature where added. -- Leandro Lucarella Integratech S.A. 4571-5252 |
February 22, 2007 Re: Type.stringof | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | Lionello Lunesu a écrit : > Walter Bright wrote: >> torhu wrote: >>> I think that it would be good if the docs could mention with which compiler version a feature was added. >> >> It does in the changelog. > > Not for .stringof it doesn't :) > > By the way, it would be nice if .stringof for an enum member would return the actual enum stringized. Note that Kevin Bealer has made two versions of a template for 'reflective enums'. I don't find the result totally satisfying as you loose the type safety in current version, but it's a good start. renoX > Will this be possible? > > L. |
Copyright © 1999-2021 by the D Language Foundation