Re: [fpc-pascal] Create class descendant at runtime?

2014-04-30 Thread Michael Schnell
On 04/29/2014 06:59 PM, Mark Morgan Lloyd wrote: In my case it was a MIDI filter:... Ahh, one keyboarder more on this list :-) . Hi to you. (off topic: I once successfully tested doing MIDI/Audio VST plugins with Delphi, using an appropriate SDK that is available in the Internet. Right now

Re: [fpc-pascal] Create class descendant at runtime?

2014-04-30 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/29/2014 06:59 PM, Mark Morgan Lloyd wrote: In my case it was a MIDI filter:... Ahh, one keyboarder more on this list :-) . Hi to you. Only marginally. A small and elderly Yamaha hooked up to PianoBooster and a MIDI output box, with Brighton/Bristol available

Re: [fpc-pascal] Create class descendant at runtime?

2014-04-29 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/29/2014 03:58 AM, Craig Peterson wrote: Does Free Pascal or any of the included packages have a way to create a descendant of a class at runtime? Only a script interpreter could possibly create a Type at runtime. AFAIK, there is a Pascal script interpreter usable

Re: [fpc-pascal] Create class descendant at runtime?

2014-04-29 Thread Michael Schnell
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

Re: [fpc-pascal] Create class descendant at runtime?

2014-04-29 Thread Mark Morgan Lloyd
Michael Schnell wrote: 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 ? I've got something where I can recompile a .so and the main program reloads it automatically (usually) without

Re: [fpc-pascal] Create class descendant at runtime?

2014-04-29 Thread Paul Breneman
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

[fpc-pascal] Create class descendant at runtime?

2014-04-28 Thread Craig Peterson
Hi guys, Does Free Pascal or any of the included packages have a way to create a descendant of a class at runtime? Before anyone tells me it's a bad idea, I know. I have an existing class-based registration scheme that I'm adding some dynamically loaded plugins to and the alternatives are all