Le 2011-11-18 à 16:57:00, Hans-Christoph Steiner a écrit :
On Nov 18, 2011, at 4:55 PM, Mathieu Bouchard wrote:
Read it as « a bang or an empty list ». The bang is cast to an empty-list in a context where a list-method is defined but a bang-method isn't.
Hmm, I think it really the opposite, an empty list is cast as a bang. That's how its generally implemented anyway.
pd_defaultbang() casts bang to list when there is no bang-method.
pd_defaultlist() casts list to bang wheh there is no list-method and the list has 0 arguments (otherwise it casts to something else or tries to auto-unpack)
So, it's really both, but at least I didn't claim that there was only one converter.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC