From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-18T09:28:37+09:00 Subject: Re: [swig] avoiding the module name On Thu, 17 Apr 2003 20:11:30 +0000, Lyle Johnson wrote: > Simon Strandgaard wrote: > >> To access this class from ruby, I have to type "Embed::Redirect". >> >> Can I avoid this first part ("Embed::") of the name ??? > > Is there some reason you can't just 'include' the module, i.e. instead > of this: > > foo = Embed::Redirect.new > > do this: > > include Embed > foo = Redirect.new > > ? Yes "include" can do it, but... read on Im working on a embedding-tutorial with some skeleton code. If someone wants to extend this code with a new class, then he/she has to write a bunch of code, spread out over many different files. Im trying to reduce this number of places where you need to make changes :-) Is there some way to tell SWIG that it should NOT encapsulate the classes in a %module module ??? -- Simon Strandgaard