Re: [fpc-pascal] run pascal programs as scripts

2011-03-25 Thread michael . vancanneyt
On Thu, 24 Mar 2011, Mattias Gaertner wrote: On Thu, 24 Mar 2011 23:10:08 +0100 Felipe Monteiro de Carvalho wrote: Commenting is better. Then the reported error line numbers are still valid. Yes, but then bash won't recognize it, I suppose I meant: Original file: #!/usr/bin/instantfpc

[fpc-pascal] calling object pascal object function in c/c++

2011-03-25 Thread Toan Pham
Hi, I am working on calling object pascal functions from c/c++. I notice that when a unit is compiled into object code, the name of a function is altered in this convention: _$$ for example, if i have this unit: unit wrapper; interface function test(): integer; stdcall; implementation fu

[fpc-pascal] Re: calling object pascal object function in c/c++

2011-03-25 Thread leledumbo
http://www.freepascal.org/docs-html/prog/progsu126.html Here you go. Watch out for name clash. FPC uses that convention for operator overloading and symbol namespacing. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/calling-object-pascal-object-function-in-c-c-

[fpc-pascal] Re: calling object pascal object function in c/c++

2011-03-25 Thread leledumbo
Sorry, I mean just overloading. both operator and function/procedure applies. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/calling-object-pascal-object-function-in-c-c-tp4264422p4264529.html Sent from the Free Pascal - General mailing list archive at Nabble.co