[fpc-devel] Non-local goto’s and nested exits

Florian Klaempfl florian at freepascal.org
Thu Oct 14 14:12:42 CEST 2010


Am 14.10.2010 14:09, schrieb Adriaan van Os:
> Jonas Maebe wrote:
>>
>> On 04 Oct 2010, at 12:17, Adriaan van Os wrote:
>>
>>> I wonder if there is anything special that hinders the implementation
>>> of non-local goto’s and nested exits in macpas mode.
>>
>> Afaik it's mainly a matter of no one caring enough about it to
>> implement it. Florian did recently add support for non-local goto's in
>> ISO mode, but it uses setjmp/longjmp directly and therefore probably
>> doesn't play nice with automated types.
> 
> You mean, for example, the implicit exception handling of Ansistrings ?

Yes, I think I didn't handle this properly. Gotos out and into
procedures having implicit exeception handling should be forbidden. My
patch does not check all involved procedures but this should be easy to
implement.



More information about the fpc-devel mailing list