Op 2019-04-13 om 09:47 schreef Sven Barth via fpc-pascal:

    I think the same as when I read the suggestion for an inout
    variant of
    VAR. Move this out of the language syntax, and make it directives or
    attribute like syntax (like we will need to get anyway for const ref).


Im definitely for new syntaxes (or the attribute one) than a directive. A directive can be anywhere and I'd need to go looking for it if I want to know whether it is set or not. Some syntax extension would be right at the declaration.

Such "inventions" are usually for specific APIs, and then the directive can be set global. Make it a new language syntax, and it turns up everywhere, also where it was not intended for.

So, yeah, we'll probably compromise towards the attribute syntax...

That's a second. Note that the stuff where this is borrowed from (like Windows headers [size_is are also attributes.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to