leledumbo wrote:
FPC treats procedural types a little different from Delphi / TP, see
http://www.freepascal.org/docs-html/ref/refse17.html this . You can
therefore write your AddressOf function as:
FUNCTION AddressOf(VAR x): POINTER;
... // variables (if you ever need)
begin
{$ifdef fpc}
On Fri, 19 Dec 2008, Mark Morgan Lloyd wrote:
I've got a few thousand lines of Pascal which I'm converting to FPC. It's
actually the Meta-2 compiler-compiler which despite its age I still find
useful for embedded script processing, I hope eventually to get it running on
SPARC and possibly
Michael Van Canneyt wrote:
Is there a directive or mode that will allow a procedure variable to be
compatible with AddressOf() as defined? Alternatively is there a type which is
compatible with any procedure variable (i.e. like Modula-2's PROC, if my
memory is correct), and can I overload
Hello Mark,
Saturday, December 20, 2008, 1:40:15 PM, you wrote:
MML Already am using (*$MODE DELPHI *)
Hmmm... this should be {$MODE DELPHI} do not ? using (* *) you get a
comment, or maybe I'm wrong ?
In Delphi mode you must not need the @ for procedural assigns.
--
Best regards,
JoshyFun
On Sat, 20 Dec 2008 16:21:45 +0100
JoshyFun joshy...@gmail.com wrote:
Hello Mark,
Saturday, December 20, 2008, 1:40:15 PM, you wrote:
MML Already am using (*$MODE DELPHI *)
Hmmm... this should be {$MODE DELPHI} do not ? using (* *) you get a
comment, or maybe I'm wrong ?
In Delphi
Mattias Gaertner wrote:
On Sat, 20 Dec 2008 16:21:45 +0100
JoshyFun joshy...@gmail.com wrote:
Hello Mark,
Saturday, December 20, 2008, 1:40:15 PM, you wrote:
MML Already am using (*$MODE DELPHI *)
Hmmm... this should be {$MODE DELPHI} do not ? using (* *) you get a
comment, or maybe I'm
On Sat, 20 Dec 2008 17:00:37 +
Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote:
Mattias Gaertner wrote:
On Sat, 20 Dec 2008 16:21:45 +0100
JoshyFun joshy...@gmail.com wrote:
Hello Mark,
Saturday, December 20, 2008, 1:40:15 PM, you wrote:
MML Already am using
I've got a few thousand lines of Pascal which I'm converting to FPC.
It's actually the Meta-2 compiler-compiler which despite its age I still
find useful for embedded script processing, I hope eventually to get it
running on SPARC and possibly ARM as well as x86. Linux will not be the
first OS
FPC treats procedural types a little different from Delphi / TP, see
http://www.freepascal.org/docs-html/ref/refse17.html this . You can
therefore write your AddressOf function as:
FUNCTION AddressOf(VAR x): POINTER;
... // variables (if you ever need)
begin
{$ifdef fpc}
AddressOf:=...@x;