[fpc-devel] Fwd: While - Otherwise Statement

Sven Barth pascaldragon at googlemail.com
Tue Oct 13 20:49:06 CEST 2015


Am 13.10.2015 19:21 schrieb <wkitty42 at windstream.net>:
>>
>> If somebody really has to do this wouldn't "also" be a better choice to
avoid
>> (getting close to overloading "as"? :-/
>
>
> it might... i don't know anything about "as" because i've never used
it... what does it do?

It's an operator for casting classes and interfaces in a safe way (which
means that an exception is raised if the cast fails).

See here:
http://www.freepascal.org/docs-html/ref/refsu47.html#x141-15100012.8.7

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151013/e7d28d40/attachment.html>


More information about the fpc-devel mailing list