As an aside, here's an interesting code snippit for loading all
classes in a given package. Basically, you just ask the classloader
for a resource for the package, and then iterate over contents. Might
be a good way to make import "foo.*" work as expected.

http://www.jonpeck.com/forum/viewtopic.php?t=88

On 5/10/06, Charles O Nutter <[EMAIL PROTECTED]> wrote:
I wouldn't mind an alias, and we could probably jury-rig import
"foo.*" to work at least as poorly as the old method of including a
package.

- Charlie

On 5/10/06, David Corbin <[EMAIL PROTECTED]> wrote:
> On Wednesday 10 May 2006 07:14 am, David Corbin wrote:
> > On Wednesday 10 May 2006 02:38 am, Charles O Nutter wrote:
> > > Can anyone remember why we decided to use include_class instead of
> > > import? It suddenly occurred to me today that import is both shorter
> > > and more precise, since we're really importing a Java class into the
> > > current namespace.
> >
> > I suspect it was to be kind of like 'include Module', but I don't know why
> > we would want that.
> >
>
> On further reflection, it may be because we cannot import a package ("foo.*")
> and thus creates less confusion.
>
> > > There's probably a snowball's chance in hell we'll change it now, of
> > > course
> >
> > We could make import an alias for it.
> >
> >
> > -------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Jruby-devel mailing list
> > Jruby-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jruby-devel
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jruby-devel mailing list
> Jruby-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jruby-devel
>


--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com



--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to