tobyink / p5-moops

16 stars 4 forks source link

Imports don't seem to work as described #18

Open tobyink opened 3 years ago

tobyink commented 3 years ago

Migrated from rt.cpan.org #101290 (status was 'open')

Requestors:

Attachments:

From ivanwills@cpan.org (@ivanwills) on 2015-01-04 20:21:09 :

Hi,

The imports option to use Moops doesn't appear to import the methods supplied correctly (missing prototypes?).

The files attached show the issue using imports and how I expect with "use".

Ivan

tobyink commented 3 years ago

From csson@cpan.org (@csson) on 2015-03-12 11:01:45 :

Hi,

'imports' takes an array ref:

use Moops imports => [ 'List::Util' => qw/reduce/ ];

https://metacpan.org/pod/Moops#Custom-Sugar

/Erik

On Sun Jan 04 15:21:09 2015, IVANWILLS wrote:

Hi,

The imports option to use Moops doesn't appear to import the methods supplied correctly (missing prototypes?).

The files attached show the issue using imports and how I expect with "use".

Ivan