http://qs321.pair.com?node_id=645123


in reply to Inside-out objects: encapsulation, spell-check, memory and dumping

Regarding performance, my inclination is to put the spell-check subs (sub attribute() returning 'attribute') in a BEGIN block under the assumption that the compiler will optimize away these trivial subs.

Subs are always compiled in BEGIN mode, exclusive of eval tricks. AFAIK, they are only optimized away with a "()" prototype and a constant return value.

After Compline,
Zaxo