Wow! I particularly love how straightforward it is to distinguish between two haltOnce. Amazing work. Cheers, Doru
On Jun 14, 2016, at 9:47 AM, marcus.denker@inria.fr wrote:
Hi,
Yesterday we improved #haltOnce to be more like a âonceâ BreakPoint:
-> state per *each* haltOnce send (this means you can put two in one method and they are independent) -> when putting a haltOnce, it is enabled by default -> The global menu entry just resets all haltOnce to be active again.
Interesting is how trivial this was to implement⦠in class Halt once | node | node := thisContext sender sender sourceNodeExecuted. (node hasProperty: #haltOnce) ifTrue: [^self]. node propertyAt: #haltOnce put: true. ^ self signal.
This means, we get the AST node of the âhaltOnceâ message send. Then we put an annotation there. To reset all (enable all), the global many just does:
#haltOnce senders do: #recompile.
Done.
This will be in 60082.
Marcus
-- www.tudorgirba.com www.feenk.com "Problem solving efficiency grows with the abstractness level of problem understanding."