Re: [fpc-pascal] Incompleteness of current fix for #22860

2012-09-13 Thread JC Chu
On Thu, Sep 13, 2012 at 4:17 PM, Jonas Maebe wrote: > I think one of the prime requirements to get readable code is that a > compilable expression always means the same. Other forms of polymorphism can also lead to violations of this requirement. Basically I think it should be left to the user

Re: [fpc-pascal] Incompleteness of current fix for #22860

2012-09-13 Thread Jonas Maebe
JC Chu wrote on Thu, 13 Sep 2012: Regarding bug #22860 on the inability to define enumeration members using expressions containing previously defined members of the same type, the current fix does not provide a complete solution. The current fix won’t allow for valid declarations such as TYPE

[fpc-pascal] Incompleteness of current fix for #22860

2012-09-12 Thread JC Chu
Jonas, Regarding bug #22860 on the inability to define enumeration members using expressions containing previously defined members of the same type, the current fix does not provide a complete solution. The current fix won’t allow for valid declarations such as TYPE TMyEnum = (meA, meB = 1 + meA)