Skip Menu |

This queue is for tickets about the Module-Runtime CPAN distribution.

Report information
The Basics
Id: 89111
Status: rejected
Priority: 0/
Queue: Module-Runtime

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: load_class alias for use_module
Date: Tue, 1 Oct 2013 10:34:46 -0500
To: bugs-module-runtime [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
being able to chain off a class name is awesome. Both Class::Load and Plack::Util have a `load_class` function that does this as well, though the API's appear to have slightly different optional parameters. I have a few objects that use Class::Load::load_class, with Moose dropping it in upcoming versions it loses it's "already a dep" appeal, any chance you'd consider providing a load_class alias for ease of API compatibility? -- Caleb Cushing http://xenoterracide.com Calendar: https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago
Subject: Re: [rt.cpan.org #89111] load_class alias for use_module
Date: Wed, 2 Oct 2013 00:04:23 +0100
To: Caleb Cushing via RT <bug-Module-Runtime [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Caleb Cushing via RT wrote: Show quoted text
> any chance you'd consider providing a load_class alias >for ease of API compatibility?
You can already import it under whatever name you like: use Module::Runtime (); BEGIN { *load_class = \&Module::Runtime::use_module; } I'm not interested in building in arbitrary extra names. -zefram