Graeme Geldenhuys het geskryf:
* Properties, section 4.6, of the Language Reference documentation doesn't
mention the 'implements' specifier in the diagram (page 54). Its got read,
write and default, but not implements.
Sorry, I see this chapter is related to global variables, and 'implements' is actually covered in Class > Properties (page 75).
BTW: I actually learnt something new now. I never new you could have a property outside a class. I can't say that in the many years I have been programming with object pascal that I have ever seen properties used as a global variable. Umm?
-------[ How weird is this legal code?? ]---------------
unit unit1;
{$mode objfpc}
interface
function GetMyInt : Integer;
procedure SetMyInt(Value : Integer);
property MyProp: Integer Read GetMyInt Write SetMyInt;
implementation
--------------------------
Regards,
- Graeme -