tag:blogger.com,1999:blog-10106032.post881633436265005255..comments2024-03-14T09:24:53.310+00:00Comments on Entropy Overload: Locations vs Values: using RTTI to work with value typesBarry Kellyhttp://www.blogger.com/profile/10559947643606684495noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-10106032.post-82752364173369108212010-05-31T11:40:06.347+01:002010-05-31T11:40:06.347+01:00Good enhancement, and the code works without havin...Good enhancement, and the code works without having to wait for next version of Delphi.<br /><br />What I still miss is setting length of dynamic (generic) array by RTTI: if I have a TLocation, where FType is TRttiDynamicArrayType, then a TLocation.SetLength is missing. Any hint on how to do this?<br /><br />Further I miss RTTI-Invoke for methods of records a little.F. Bauerhttp://franz.j.bauer@siemens.comnoreply@blogger.comtag:blogger.com,1999:blog-10106032.post-80701194187490320382010-05-12T22:03:19.159+01:002010-05-12T22:03:19.159+01:00This comment has been removed by the author.Maciej Izakhttps://www.blogger.com/profile/11200277158559418856noreply@blogger.comtag:blogger.com,1999:blog-10106032.post-10690866921524086932010-05-11T20:10:52.747+01:002010-05-11T20:10:52.747+01:00Oh, you're right. I missed that ^ mark.Oh, you're right. I missed that ^ mark.Mason Wheelerhttp://tech.turbu-rpg.comnoreply@blogger.comtag:blogger.com,1999:blog-10106032.post-27498169737252425852010-05-11T19:21:32.973+01:002010-05-11T19:21:32.973+01:00The code is different between instances and record...The code is different between instances and records because instances need a dereference before adding the offset. It could be written differently, of course.Barry Kellyhttps://www.blogger.com/profile/10559947643606684495noreply@blogger.comtag:blogger.com,1999:blog-10106032.post-86664158636172514282010-05-11T19:07:59.520+01:002010-05-11T19:07:59.520+01:00I like it! Any chance we might see this in Fulcru...I like it! Any chance we might see this in Fulcrum's RTTI.pas? I can already think of a handful of places where this might be useful.<br /><br />BTW why the code duplication in the implementation of TLocation.FieldRef?Mason Wheelerhttp://tech.turbu-rpg.comnoreply@blogger.com