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] Inconsistent results currency - extended ?

2014-04-29 Thread Michael Schnell
Real values are not supposed to be exact. They are depending on the hardware and other stuff by design. currency is a funny beast :) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Inconsistent results currency - extended ?

2014-04-29 Thread Pierre Free Pascal
Your code does not even compile on my 2.6.4 installation (no Lazarus). Where does the currtostr function come from? Apparently from sysutils unit. How is it 'included' without any uses clause? I found no option that automatic add unit sysutils. Could you give us a source and a compilation

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

Re: [fpc-pascal] Inconsistent results currency - extended ?

2014-04-29 Thread LacaK
Your code does not even compile on my 2.6.4 installation (no Lazarus). Where does the currtostr function come from? Apparently from sysutils unit. Yes from SysUtils How is it 'included' without any uses clause? I found no option that automatic add unit sysutils. Could you give