Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Ralf Quint
On 11/7/2022 4:56 PM, Aitor Santamaría wrote: After all, if you declare a procedure to be far is because you want it to be called far, right? I have not tried anything like this with 16bit FPC, but in BP7 (and probably before that, but that's +30 years ago 😉 ), procedural parameters have alwa

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor SantamarĂ­a
Hello! I simplified my email, but this is how it is actually being done :( Aitor On Mon, 7 Nov 2022 at 14:38, stefano cirilli wrote: > Hi, try to define the variable as a Type: > > I googled this: > Type TOneArg = Procedure (Var X : integer); on > https://www.freepascal.org/docs-html/ref/refs

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor SantamarĂ­a
Hello, On Mon, 7 Nov 2022 at 10:12, Rugxulo wrote: > Hi, > > On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: > > > > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) > > Default is Small, e.g. "-WmSmall". I assume "-WmCompact" woul

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Aitor SantamarĂ­a
Hello Jerome, On Mon, 7 Nov 2022 at 04:08, Jerome Shidel wrote: > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) > Compact is the one that gives me less problems (it's also the one that got most recommendations :) ). > You may need

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Jerome Shidel
Hi Rugxulo, > On Nov 7, 2022, at 4:11 AM, Rugxulo wrote: > > ï»żHi, > >> On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: >> >> Make sure your compiling to the correct memory model. (I think huge, but >> you’ll need to double check that) > > Default is Small, e.g. "-WmSmall". I assume "-Wm

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread stefano cirilli
Hi, try to define the variable as a Type: I googled this: Type TOneArg = Procedure (Var X : integer); on https://www.freepascal.org/docs-html/ref/refse17.html On 07/11/22 01:18, Aitor Santamaría wrote: > Hello, > > I am trying to recompile FD-KEYB using 16-bit DOS FreePascal, in order > to see if

[Freedos-devel] Ré : Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Paul Dufresne via Freedos-devel
You might want to take a look at: https://wiki.freepascal.org/How_to_use_procedural_variables ___ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Re: [Freedos-devel] Problem with procedural types in 16-bit DOS FreePascal

2022-11-07 Thread Rugxulo
Hi, On Sun, Nov 6, 2022 at 9:08 PM Jerome Shidel wrote: > > Make sure your compiling to the correct memory model. (I think huge, but > you’ll need to double check that) Default is Small, e.g. "-WmSmall". I assume "-WmCompact" would work better for you? > You may need to ensure the actual proce