Re: [fpc-devel] procedure Types

2006-03-13 Thread Amir Aavani
Any idea to call: BeginThread (@MyObject.F1, Pointer (S)) Michael Van Canneyt wrote: On Sat, 4 Mar 2006, Amir Aavani wrote: I have problem with procedure Types. Look at the following code: TProcedure= procedure (S: String); TTest= class MyF: TProcedure; procedure F1 (S: String);

Re: [fpc-devel] procedure Types

2006-03-13 Thread Michael Van Canneyt
On Mon, 13 Mar 2006, Amir Aavani wrote: Any idea to call: BeginThread (@MyObject.F1, Pointer (S)) You can't do this. MyObject.F1 is a method, not a procedure. You should do something like: Function MyThreadProc(P : Pointer) : Integer; begin TMyObject(P).F1; end; and call BeginThread

[fpc-devel] platform directive

2006-03-13 Thread Marc Weustink
Hi, Question, does the platform derective onlyt work for properties ? It seems the you may add it to methods and procedures as well, but when accessing them no warning is issued. On FPC 2.0.2 I only get an warning if I access property A. I couldn't find documentation on this either. Marc