2009/10/7 Lukas Renggli <[email protected]>: >> Okay, if you need to visit pragmas as well, then why don't do it: > > Yes, this is important. Otherwise you can't browser for references to > a Pragma anymore. > >> CompiledMethod>>refersToLiteral: aLiteral >> >> self literalsDo: [ blablah ]. >> self pragmas do: [ blah blah ] >> >> ^ false >> >> which makes this method immune from any future changes in CompiledMethod >> format. >> So, we don't need to think about 'fixing' it again and again, each >> time we need to hack things. > > This would introduce a major performance bottleneck for commonly used > Smalltalk features like senders/implementors/references. >
Well, before stating that, we should measure it. My point, that we should keep a minimum methods, which is aware of a deep internals of method's format. Then it would be easier to maintain it. > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Best regards, Igor Stasenko AKA sig. _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
