[e-lang] FQN confusion

Kevin Reid kpreid at mac.com
Mon May 15 17:40:01 EDT 2006

   Confusion \Con*fu"sion\, n. [F. confusion, L. confusio.]
      1. The state of being mixed or blended so as to produce
         indistinctness or error; indistinct combination; disorder;
         [1913 Webster]

     -- dict.org

(In this message, I use "FQN of an object" to mean  

                      E               Java mapping
Object variable      foo             foo
Guard variable       Foo             Foo
Maker variable       makeFoo         makeFoo
Object's FQN         makeFoo$foo     Foo
Guard .getFQName()   Foo             Foo
   or                 makeFoo$foo
Guard's FQN          ...$Foo         Class
Maker's FQN          makeFoo         StaticMaker

Problem: In E conventions, "Foo" is the FQN and <import> name of a  
guard, but in Java mapping "Foo" is the FQN of an instance.

Problem: In E conventions the FQN of an interface-ish guard (def  
PassByCopy { ... }) is the same as the FQN of what it describes,  
which seems wrong; <PassByCopy> is not itself (necessarily) PassByCopy.

Question: What should be the FQNs of native objects in E-on-CL? That  
is, what does 1.__getAllegedType().getFQName() return?

Question: What should be the FQNs of guards defined in E, and how  
does one write E code to implement this?

Kevin Reid                            <http://homepage.mac.com/kpreid/>

More information about the e-lang mailing list