The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,308 other followers

There is a way to convert ‘array of const’ (open array) to TValue: Asbjørn Heid found one.

Posted by jpluimers on 2017/07/27

Brilliant solution by Asbjørn Heid:

So the solution I came up with is to use the observation that the “array of const” is “array of TVarRec”, and that “array of TVarRec” is passed as as two arguments: a pointer to the data and the length of the array (or rather, the highest index in the array).

Source: Is there a way to convert ‘array of const’ (open array) to TValue? For example,… [WayBack]

–jeroen

One Response to “There is a way to convert ‘array of const’ (open array) to TValue: Asbjørn Heid found one.”

  1. sglienke said

    Unfortunately invoking methods containing open array via rtti is still not supported (see https://quality.embarcadero.com/browse/RSP-16317)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: