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 us

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

2014-04-29 Thread Mark Morgan Lloyd
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" re

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 J

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

2014-04-29 Thread Martin Frb
On 29/04/2014 02:58, Craig Peterson wrote: 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 load

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] 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] 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 http://lists.freepascal.org/cgi-bin/mailman/l

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 indee

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 wi

[fpc-pascal] Inconsistent results currency - extended ?

2014-04-29 Thread LacaK
Hi, I catch strange behavior, which I can not understand ;-) I have 2 PC on both I have installed Lazarus 1.2.2 + FPC 2.6.4 (official release) 1st PC has Windows 98 2nd PC has Windows Vista (32 bit) I have this program: = var c: currency; e: extended; begin c:=-

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

2014-04-29 Thread Michael Schnell
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 with fpc. And in a script