[Kde-games-devel] Unify pixmap caching across card games

Burkhard Lehner burkhard.lehner at googlemail.com
Sun Jan 6 17:01:03 CET 2008


Hello,

just my 2 cents:

2008/1/6, Andreas Pakulat <apaku at gmx.de>:
>
> > Minor thing is: how about adding "const" modifier to "get" methods? :)
>
> Not possible, because getXXX might modify data as the requested card
> might not yet have been in the cache.


You could use the right amount of "mutable" modifiers to have both, a const
get method, and the possibility to modify member variables.
This is exactly the situation the modifier "mutable" was created for, so why
not use it?

Burkhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20080106/5f5f25d4/attachment.html 


More information about the kde-games-devel mailing list