Re: [fpc-pascal] question about class

2010-05-14 Thread Andrew Hall
>> Do i need to explicitely name self as param? self is a reserved keyword which represents the reference to the object of context (much the same as using "result" in a function) - it is understood by the compiler and does not need to be specified. >> Is self actually a pointer? If yes, do I nee

Re: [fpc-pascal] question about class

2010-05-14 Thread David Emerson
I'm no expert so these answers may be a bit off, but I figure any help is nice during US business hours... > Are there somewhere more or less pedagogic examples of class code? I've never found any. I've learned largely by studying (and occasionally fixing) fpgui code. > *self* > Do i need to

[fpc-pascal] question about class

2010-05-14 Thread spir ☣
Hello, I'm trying to transform a manually implemented type, with pseudo-method as funcs/procs, into an fpc "class" type; and facing numerous issue: namely 3 whole pages of compiler errors ;-). Are there somewhere more or less pedagogic examples of class code? *self* Do i need to explicitely nam