[fpc-devel] Initialize/Finalize management operators and Default intrinsic
Maciej Izak
hnb.code at gmail.com
Tue Apr 12 15:31:45 CEST 2016
2016-04-12 14:48 GMT+02:00 Michael Van Canneyt <michael at freepascal.org>:
> I really don't think you should delegate such things to attributes. You
> make 2 completely unrelated language constructs suddenly related. A bad
> design decision.
I think you are wrong. Attributes are not only dedicated to RTTI just look
at other languages: Delphi, C#, Java. Instead of extending language into
infinity you can use simple attribute with parameter. I don't see any
reason why don't use attributes to describe some compiler/RTL behavior? Any
attribute can be easier placed in many language structures without breaking
language syntax. That is much harder with new keywords.
Maybe that is not ideal but works excellent.
--
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160412/413ae241/attachment.html>
More information about the fpc-devel
mailing list