Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Andrew Haines
On 02/18/11 03:14, Angel Montesinos wrote: > While waiting for a 64 bits Delphi, I am doing experimentation with > fpc-Lazarus 64 bits. And this is my problem: > > In most of my programs I use my own library for parsing and evaluating > floating point functions like > > 'x sin(y z)' > > passed

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Marco van de Voort
In our previous episode, Sven Barth said: > > > > I personally would say that mapping a page with the Execute flag set and > > storing the to-be-executed content there should be enough. After all JIT > > compilers must do that as well. ;) > > Also according to here: > http://en.wikipedia.org/wiki

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Sven Barth
Am 18.02.2011 13:46, schrieb Sven Barth: Am 18.02.2011 12:16, schrieb Marco van de Voort: In our previous episode, Jonas Maebe said: because this is not a problem in Delphi nor it was in an old version of fpc-Lazarus 32 bits. Please give me a tip. Many thanks in advance. You probably have to

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Sven Barth
Am 18.02.2011 12:16, schrieb Marco van de Voort: In our previous episode, Jonas Maebe said: because this is not a problem in Delphi nor it was in an old version of fpc-Lazarus 32 bits. Please give me a tip. Many thanks in advance. You probably have to mark the memory in which you write the cod

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > because this is not a problem in Delphi nor it was in an old version > > of fpc-Lazarus 32 bits. Please give me a tip. > > Many thanks in advance. > > You probably have to mark the memory in which you write the code as > "executable" first (this h

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Jonas Maebe
On 18 Feb 2011, at 09:14, Angel Montesinos wrote: I have tried all possible combinations like V:= PChar(code), V:= @code[1], etc. to no avail. Thus I think something is wrong in my understanding of the whole business in 64 bits or in fpc-Lazarus, because this is not a problem in Delphi nor