[fpc-devel] New language feature suggestion (probably not existing in Delphi)
Alexander Klenin
klenin at gmail.com
Thu Dec 2 14:30:10 CET 2010
On Thu, Dec 2, 2010 at 22:28, Max Vlasov <max.vlasov at gmail.com> wrote:
> Just curious, was it a "fight" with yourself or with someone else's code?
> Sure I had no experience with const methods, but I just can't imagine how
> function or procedures intended to caclulate/find/collect some information
> from the fields and properties of an object can be a problem in this field.
> One example comes to mind, sometimes developer wants to know how often a
> method is used, sure in this case there's no easy way to increase a feild of
> the object. Can you name some other examples?
No, this example is not the reason to duplicate methods, since
C++ has a special "mutable" modifier to get around this specific problem.
--
Alexander S. Klenin
More information about the fpc-devel
mailing list