
25 Jul
2008
25 Jul
'08
2:09 a.m.
--except where the compiler can prove that no event is registered for a particular integer.
Yes... Exactly. Either you pay for the overhead of the template type or you pay in the compiler adding extra code for types where events can be registered. . The difference is that it provides for direct data binding for primitive types. Syntax can make it clear to the compiler that extra code must be inserted. In your example there is no syntax that specifies a get/set for the local variable i. The problem I think is clear the solution... not so much. Brian