Subject: | Allow declaration of non-methods (feature request) |
I'd like to add the ability do declare the occasional non-method using signature syntax. The
attached patch enables this by allowing a boolean false value for the "invocant" option of the
import method, for example
use Method::Signatures::Simple invocant => 0, name => 'nonmeth';
The modified parse_proto handles this case by not inserting invocant code.
As is, the patch only adds the functionality. If you approve I can add tests (it passes the current
ones) and doc changes. I think an example in the synopsis would be in order if it goes in.
My motivation isn't just the "occasional non-method" in OO modules. I routinely use MSS for OO
projects. With the change, I'd be able to use it for non-OO too.
Subject: | patch |
Message body not shown because it is not plain text.