[fpc-devel] constref in Windows

Joost van der Sluis joost at cnoc.nl
Fri Nov 19 15:49:18 CET 2010


On Fri, 2010-11-19 at 15:05 +0100, Marco van de Voort wrote:
> In our previous episode, Joost van der Sluis said:
> > > 
> > > Only code that actually overrides those methods, not all interface code.
> > 
> > No, also the places where QueryInterface is called. Because the caller
> > need to know that it has to pass the GUID by reference, not value. So
> > the caller need to know that 'const' actually means 'constref' in this
> > case.
> 
> No, since const+directive can be put in the tree in the same way as a
> constref syntax element.

Hmm.. that's probaby true. If it can be made a local define, the
intrusion is as small as the constref approach.

Joost.




More information about the fpc-devel mailing list