[armedbear-devel] Using named classes for primitives

Tobias C. Rittweiler tcr at freebits.de
Mon Oct 19 17:26:24 UTC 2009


Erik Huelsmann writes:

> On Mon, Oct 19, 2009 at 2:59 PM, Alessio Stalla <alessiostalla at gmail.com> wrote:
>
> > private static final Primitive xyz = new Primitive(...) { ... };
>  >
> > we could use
> >
> > private static class JCALL extends Primitive {
> >    JCALL(...) { super(...); }
> >    ...
> > }
> > private static final Primitive xyz = new JCALL(...);
> >
> > a bit more verbose, but worth the effort imho.
>
> I think so too. However, there are a few too many of these to start
> changing them over now. Or does anybody feel like hacking up a perl
> script to get it done? :-)

If someone does, it may make sense to also include source location
information to make M-. on primitives jump to the Java source. I
actually started to work on it, but haven't had any time since.

  -T.





More information about the armedbear-devel mailing list