[fpc-pascal] How to find the return type of a for..in ?

Luca Olivetti luca at ventoso.org
Thu Jun 16 18:49:29 CEST 2016


El 16/06/16 a les 17:49, Michael Van Canneyt ha escrit:

>
> It is a good idea for a Lazarus IDE extension.

Lazarus 1.4.4 with fpc 2.6.4 can already auto-declare an iterator 
variable, e.g.

var a:TJSONObject;
begin

   for i in a do
end;

ctrl+shift+c on the i inserts a

i: TJSONEnum

declaration.

Bye
-- 
Luca





More information about the fpc-pascal mailing list