Peter Uhnák wrote
> But in both cases #, is sent to FileReference/Petit parser instance, so it
> is contained.
> You would use it on a (generic) Number and tie it to specific Bloc
> meaning.

Yes, this is exactly the problem. It is a reintroduction of a message like
#name, which plagued us for so long. We appropriate the meaning of `aNumber,
…` for the whole world. Now, if in MyCoolProject I want to implement
aNumber>>#, I will break the system. Maybe we can follow the FS/PP pattern
and scope the message to only-vector-like-things via an initial message, so
just like `$f asParser, …`, have `1 {vector-appropriate-message}, …`?



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Reply via email to