Am 28.02.2014 09:12 schrieb "Michael Schnell" <[email protected]>: > > On 02/28/2014 02:18 AM, Hans-Peter Diettrich wrote: >> >> >> So the lack of "Self" seems to apply to "static;" methods, not to "class" methods. I'll ask in an EMBT group for a description of "static;", the OH seems to reflect the C++ meaning only, > > > In ANSI C "static" with functions just means "unreachable from outside the current source file" (i.e. by the linker) (I always thought this is a silly name for that meaning.) > > Is this different with C++ ?
In C++ classes you can have static methods that work like static class methods in FPC/Delphi (no "this", need to be called with TypeName::MethodName, can be used for function pointers). Regards, Sven
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
