Re: Monkeypatching is Destroying Ruby



Pit Capitain wrote:
Could you describe "the general thing" a little bit more? As I
understood it, he wants to limit a "monkey patch" to the scope of a
Module. Which is what I've done. I've only used the import-module
library and added a more user-friendly syntax. I'm not inspecting
caller at all, and import-module doesn't either. What am I missing?

Well, I can't find import-module-extended, but assuming it's like
import-module... you're missing:

* performance
* isolation of instance variables that the extensions might create
* ability for an extended class to *always* appear extended when
called from anywhere in a class that knows about those extensions,
without having to constantly remember to add the extensions on each
call.

Is that enough to claim "no sensible way" of doing it?
.



Relevant Pages

  • New Application Extension reports 404
    ... I'm sure I'm missing a simple security setting somewhere. ... but IIS4 had the "RUN" extension mapped to execute a predefined perl script. ... Set it up for "Scripts and Executables" ... Thanks in advance for help on these extensions. ...
    (microsoft.public.inetserver.iis)
  • Re: VBA Dir () function
    ... save you grief down the road. ... Anything I'm missing here? ... you'll find the same thing happens if you drop to a command window. ... There's some ancient plumbing at work in Windows, from back in the day when 3 chars was the max for extensions. ...
    (microsoft.public.powerpoint)
  • Re: Firefox Alternative
    ... Could you please list all these extensions which you have in Firefox? ... I can't help but be curious....perhaps I am missing out on something ... Most of the time I don't really need Download Helper. ...
    (Ubuntu)
  • Application Mapping - IIS Config
    ... I'm trying to add some extensions to IIS on the properties, home directory, ... I must be missing something because the OK button is always disabled ... ...
    (microsoft.public.dotnet.framework.aspnet)