فهرست منبع

* add a remark that's going to be important once extended RTTI is supported (Delphi programs crash if an attribute's constructor is used that does not have any extended RTTI)

git-svn-id: trunk@42391 -
svenbarth 6 سال پیش
والد
کامیت
5cea374255
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      compiler/pdecl.pas

+ 3 - 0
compiler/pdecl.pas

@@ -464,6 +464,9 @@ implementation
 
             if (pcalln.nodetype=calln) and assigned(tcallnode(pcalln).procdefinition) and not codegenerror then
               begin
+                { TODO: once extended RTTI for methods is supported, reject a
+                        constructor if it doesn't have extended RTTI enabled }
+
                 { collect the parameters of the call node as there might be
                   compile time type conversions (e.g. a Byte parameter being
                   passed a value > 255) }