re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
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

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Micha Nelissen
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

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
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

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Micha Nelissen
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,

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
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

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Peter Vreman
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:

[fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-16 Thread Sean McIlwain
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:

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-16 Thread Mattias Gaertner
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