wl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://logand.com/git/wl.git/
Log | Files | Refs | LICENSE

commit ebe76c37abbe1494633e667f2895d0537e51b99f
parent 495d00355e3ca8a7f77c5ba0bf0a4aa356b1cd4f
Author: tomas <tomas@logand.com>
Date:   Sat, 31 Oct 2009 01:31:07 +0100

NIL as "" for java calls

Diffstat:
Mwl.java | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/wl.java b/wl.java @@ -467,6 +467,7 @@ class wl implements Runnable { if(A.isOstr()) return 1 == ((String) A.obj()).length(); else return A.isIsym() && 1 == A.nm().length(); } + if(NIL == A && String.class == c) return true; return c.isInstance(A.isIsym() ? A.nm() : A.obj()); } boolean isApplicable(Method m, Any[] a) { @@ -538,6 +539,7 @@ class wl implements Runnable { if(boolean.class == c || Boolean.class == c) return NIL != A; if(char.class == c || Character.class == c) return (A.isOstr() ? (String) A.obj() : A.nm()).charAt(0); + if(NIL == A && String.class == c) return ""; if(A.isIsym()) return A.nm(); return A.obj(); }