[fpc-pascal] Re: Free Pascal 2.6.0 released!
Marvin Cohrs
marvin.cohrs at hotmail.de
Mon Jan 2 00:32:27 CET 2012
Changelog:
> IInterface.QueryInterface, ._AddRef and ._Release definitions have been
> changed
> Old behaviour: The IInterface.QueryInterface, ._AddRef and ._Release
> methods were defined stdcall and the IID was passed as const.New
> behaviour: These methods are defined stdcall on Windows and cdecl on the
> other operating systems. The IID parameter has become a constref.
I think, it's really ugly to always use ifdef/ifndef directives when
overriding those methods. What's about introducing a 'nativecall'
convention,
which means 'stdcall' on windoze and 'cdecl' on other operating systems?
Wouldn't that look much prettier?
--
Marvin Cohrs <marvin.cohrs at gmx.net>
Jabber <implementor at deshalbfrei.org>
Alternatively <poehse at fahr-zur-hoelle.org>
More information about the fpc-pascal
mailing list