AspectBuffer>>isValidBlock never used?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

AspectBuffer>>isValidBlock never used?

Fernando Rodríguez
Hi,

I don't understand very well the purpose of AspectBuffer>>isValidBlock
since it's not used.

The message (#isValidBlock:) comment says:

"Sets the validation block to aOneArgBlock which will be
 passed the subject copy as its parameter. The block should answer
true if the copy can be considered to be valid such that it's
changes can be applied back to the actual subject"

However, the block is never used before running #apply. It's not sent
to the subject copy at all (allthough the comment says so) and sending
[:x|false] to #isValidBlock: won't prevent #apply from applying the
changes to the subject.

Am I missing something or what?