|Subject:||Sub::Current has no explicit return value|
|Date:||Sun, 10 Jan 2010 19:45:43 +0100|
|To:||bug-Sub-Current [...] rt.cpan.org|
|From:||Lukas Mai <l.mai [...] web.de>|
Hi, Sub::Current doesn't contain the usual "1" line at the end of modules to tell require that everything's ok. Instead it (implicitly) returns whatever was returned by XSLoader::load, which I think is not even documented. So the fact that Sub::Current loads at all seems to be a bit of an accident. While I'm here, I don't like the interface: What kind of name is 'ROUTINE' anyway? 'RECURSE' would have been better, but why not 'callee' or 'this'? Anyway, please consider this a "wishlist" bug.