From: Dan Sugalski Date: 2003-01-06T05:26:42+09:00 Subject: Compile time constant folding? Here's a quick question, now that parrot's close to getting object support and the cardinal folks are on their way to a working parser... Is it valid to do compile-time constant folding as an optimization? I know statements like a = 1 + 2 may have interesting runtime behaviours if addition is overloaded for fixnums, but is that guaranteed, or is it OK if the compiler reduces that to a = 3 ? -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunk