Matthias Gaertner wrote:
I'm getting a Error: Incompatible Types: got untyped expected
procedure variable type of procedure(Pointer);Register when
compiling the following code. This happens when using default
parameter values.
Use mode objfpc and CallBack:[EMAIL PROTECTED]
Is there some
Craig Peterson wrote:
Use mode objfpc and CallBack:[EMAIL PROTECTED]
Is there some reason why this can't be handled automatically in Delphi
mode? In the example (and every case where it's an issue in our code),
the callback is a procedure and doesn't return anything, so Callback :=
Proc
Micha Nelissen wrote:
Ambiguity depends on whether it takes parameters or not. Return value
would be context sensitive. One doesn't want a context sensitive language.
The code presented is perfectly valid in Delphi, so it apparently *is* a
context sensitive language, and I'm sure we're not
Craig Peterson wrote:
Micha Nelissen wrote:
Ambiguity depends on whether it takes parameters or not. Return value
would be context sensitive. One doesn't want a context sensitive
language.
The code presented is perfectly valid in Delphi, so it apparently *is* a
context sensitive language,
Yes but this has got nothing to do with original poster's problem :-).
Sean (the original poster) is my coworker, so his problem and mine are
one and the same. ;-) I'm having a little trouble parsing your
responses though, so to clarify:
In Delphi, the following code works:
procedure
Yes but this has got nothing to do with original poster's problem :-).
Sean (the original poster) is my coworker, so his problem and mine are
one and the same. ;-) I'm having a little trouble parsing your
responses though, so to clarify:
In Delphi, the following code works:
I'm getting a Error: Incompatible Types: got untyped expected
procedure variable type of procedure(Pointer);Register when compiling
the following code. This happens when using default parameter values.
Here is an example:
var Callback: procedure(Data: Pointer);
procedure Proc(AData:
On Wed, 16 Jul 2008 15:05:44 -0500
Sean McIlwain [EMAIL PROTECTED] wrote:
I'm getting a Error: Incompatible Types: got untyped expected
procedure variable type of procedure(Pointer);Register when
compiling the following code. This happens when using default
parameter values.
Here is an