[fpc-pascal] How can you convert an enum value to string?

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Aug 30 15:16:34 CEST 2010


On 30 Aug 2010, at 15:14, Sven Barth wrote:

> Am 30.08.2010 15:04, schrieb Michael Van Canneyt:
>>
>> On Mon, 30 Aug 2010, Frank Church wrote:
>>
>> begin
>> d:=a;
>> writestr(s,d);
>> writeln(s);
>> end.
>>
>> This works in trunk, and I think that even str() works with  
>> enumerateds in
>> trunk.
>
> WriteStr already worked in 2.4.0 as well.

Correct. However, str() is broken for enums in 2.4.0 and 2.4.2 on 64  
bit platforms (writestr works fine).


Jonas



More information about the fpc-pascal mailing list