This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: static modules and local vars


"62945" <62945@bol.com.br> writes:
> So is the "y" in the "let" transformed to static class
> var "Lit0" ? If not I imagine it would be much better if
> "y" was trasformed to a local var in method "f". In case
> "y" is "Lit0" f is not thread-safe is it ?  

My reading is that "1" is translated to Lit0.  Since 1 is a constant
that seems fine.

jode output is easier read:

public class m extends ModuleBody
{
    public static final ModuleMethod f;
    static final m $instance = new m();
    static final IntNum Lit0;
    
    // ...

    public static Object f(Object x) {
        Object y = x;
        return AddOp.$Pl.apply2(Lit0, y);
    }
    


Regards,
Chris Dean



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]