# Any reason for having no module exclusion functionality in R

**URL:** <https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533>\
**Category:** Ruby\
**Created:** [April 22, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533 "2008-04-22T22:27:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 22, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/1 "2008-04-22T22:27:52Z")

</div>

Hello,

May be I am missing something (since I am not MRI hacker), but why  
there is no module exclusion functionality â€” i.e. you can extend  
object with module, but can’t reverse this operation? Any specific  
reason for this decision?

I’ve just sketched simplistic implementation for this kind of  
functionality ([http://pastie.org/185000](http://pastie.org/185000)) and really wondering why  
there is no such stuff in MRI.

Again, am I missing something?

Yurii.

---

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 23, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/2 "2008-04-23T20:35:56Z")

</div>

2008/4/22 Yurii R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> May be I am missing something (since I am not MRI hacker), but why  
> there is no module exclusion functionality — i.e. you can extend  
> object with module, but can’t reverse this operation? Any specific  
> reason for this decision?
> 
> I’ve just sketched simplistic implementation for this kind of  
> functionality ([http://pastie.org/185000](http://pastie.org/185000)) and really wondering why  
> there is no such stuff in MRI.

Interesting, Yurii. Maybe you should ask on ruby-core?

Regards,  
Pit

---

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 23, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/3 "2008-04-23T20:39:21Z")

</div>

> > I’ve just sketched simplistic implementation for this kind of  
> > functionality ([http://pastie.org/185000](http://pastie.org/185000)) and really wondering why  
> > there is no such stuff in MRI.
> 
> Interesting, Yurii. Maybe you should ask on ruby-core?

I’d be happy to â€” but I can’t subscribe to ruby-core, neither by email  
or through web form â€” I get no response from mailing list software.

BTW, [GitHub - yrashk/rbmodexcl: Ruby module exclusion functionality](http://github.com/yrashk/rbmodexcl/tree/master)

Yurii.

---

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 23, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/4 "2008-04-23T21:30:34Z")

</div>

> > I’d be happy to ï¿½ but I can’t subscribe to ruby-core, neither by email  
> > or through web form ï¿½ I get no response from mailing list software.
> 
> Yurii, if you don’t mind I could forward it to ruby-core.

Pit, it would be great! Just be sure to mention  
[GitHub - yrashk/rbmodexcl: Ruby module exclusion functionality](http://github.com/yrashk/rbmodexcl/tree/master) instead of that pastie 🙂

Thanks in advance,  
Yurii.

---

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 23, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/5 "2008-04-23T21:13:15Z")

</div>

2008/4/23 Yurii R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > Interesting, Yurii. Maybe you should ask on ruby-core?
> 
> I’d be happy to — but I can’t subscribe to ruby-core, neither by email  
> or through web form — I get no response from mailing list software.

Yurii, if you don’t mind I could forward it to ruby-core.

Regards,  
Pit

---

<div class="post-metadata">

**Author:** ![yrashk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/77aa72/32.png) [@yrashk](https://www.ruby-forum.com/u/yrashk)\
**Post date:** [April 24, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/any-reason-for-having-no-module-exclusion-functionality-in-r/135533/6 "2008-04-24T14:31:44Z")

</div>

Yurii R. wrote:

> > > I’d be happy to ï¿½ but I can’t subscribe to ruby-core, neither by email  
> > > or through web form ï¿½ I get no response from mailing list software.  
> > > Yurii, if you don’t mind I could forward it to ruby-core.
> 
> Pit, it would be great! Just be sure to mention  
> [GitHub - yrashk/rbmodexcl: Ruby module exclusion functionality](http://github.com/yrashk/rbmodexcl/tree/master) instead of that pastie 🙂

This may interest you:

[http://rubyforge.org/docman/view.php/735/2472/examples.html](http://rubyforge.org/docman/view.php/735/2472/examples.html)

Regards,

Dan
