<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-12-06 22:49 GMT+01:00 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We won't need Invoke() function for attributes, since Joost's branch<br>
generates a function that calls the attribute class' constructor with<br>
the provided values and returns the created instance.<br>
This has the advantage that it's a) faster and b) works on all supported<br>
platforms whereas Invoke() will not be supported on all platforms at the<br>
beginning and additionally requires the parameter RTTI to be in place<br>
(basically what's introduced with the Interface RTTI branch).</blockquote><div><br></div><div>Yes I really like all of mentioned advantages!... at the beginning I was a little confused how it works without Invoke in RTTI.pas. Indeed good idea, but if we really like to have Delphi clone of attributes (with logic and typinfo data) then Invoke is needed.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've just looked through Joost's branch. One of the biggest problems is<br>
the unit list and the list of types contained in each unit. Since this<br>
is only introduced in the branch and the introduction of dynamic<br>
packages completely shakes that up (I want to be able to look up types<br>
of packages that were dynamically loaded after all ;) ).<br>
So if we agree that for now TRttiContext either is removed or its<br>
methods return Nil and attribute support is also removed for now then we<br>
can indeed move the RTTI unit rather unceremoniously to trunk (I'll need<br>
to rework Joost's branch anyway).<br>
Since we now also support generic functions we can also add the missing<br>
functions of TValue ;) (patches welcome once we've indeed merged it)<br></blockquote><div><br></div><div>Sure, very welcome. TValue is good for beginning (would be cool to use TValue with MO). RTTI.pas might be good start point for early implementation of "Invoke" for few platforms.</div><div> </div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>