#### [Fri, Dec 06, 2002 at 05:01:21PM -0500: Dan Sugalski] > At 5:47 PM -0500 12/3/02, David Robins wrote: > >On Tue, 3 Dec 2002, Dan Sugalski wrote: > >- create immutable "true" and "false" PMCs > > That's fine. > > >- have not P0, P1 set P0 to $1->get_bool ? true : false > > Sure, that works. I can't think of a good reason to have PMCs be able > to return something fancier than true or false when we ask them for > their logical negation. (Can any language override logical negation > to return something besides true/false?)
Be careful not to stop people doing interesting, useful but entirely sick things. Current perl has problems rooted in the way it deals with overloading and tieing that mean some things can't be done without lots of rewriting. I'd say that any operation who's result could be stored somewhere should (nay, must) be able to return a fully fledged PMC. That is to say, in "if ( !exp1 ) { ... }", !exp1 merely has to be true or false, while $foo = !exp1 leaves !exp1 needing to be all manner of things. Alex Gough -- It was at this time that some very pious Englishmen, known as the Early Fathers, sailed away to America in a ship called the Mayfly; this is generally referred to as the Pilgrims' Progress and was one of the chief causes of America.