[fpc-pascal] Create class descendant at runtime?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Tue Apr 29 18:59:54 CEST 2014

Paul Breneman wrote:
> On 04/29/2014 04:59 AM, Michael Schnell wrote:
>> On 04/29/2014 10:34 AM, Mark Morgan Lloyd wrote:
>>> Or possibly building the source for a dll/so on the fly.
>> A nice and funny idea combining the benefits of scripting and compiling.
>> A little bit similar to the "ahead of time" reatlime compiler in a Java
>> or CIL framework.
>> Did somebody ever indeed put something like this to work ?

In my case it was a MIDI filter: display messages in a debugging window 
as they came in, edit the library to handle them specially, reload and 
repeat. The result was a program that could transpose multiple manuals 
and switch between transpositions depending on button presses, but where 
the message emitted by each button was very much dependant on the 
keyboard model and manufacturer.

I'm sure there's a better example.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list