Changeset 3727


Ignore:
Timestamp:
Apr 17, 2008, 7:02:37 PM (13 years ago)
Author:
yura
Message:
 
Location:
to-imperative/trunk/java/java/org/refal/plus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/java/org/refal/plus/Reference.java

    r3725 r3727  
    3434    public String toString () {
    3535        String className = object.getClass().getName();
    36         if (className.startsWith("org.refal.plus."))
    37             className = className.substring("org.refal.plus.".length());
     36        if (className.startsWith("org.refal.plus.objects."))
     37            className = className.substring("org.refal.plus.objects.".length());
     38        else if (className.equals("org.refal.plus.Func"))
     39            className = "Func";
    3840        return '&' + (name != null ? name : object == null ? "null" : className + '@' + Integer.toHexString(hashCode()));
    3941    }
  • to-imperative/trunk/java/java/org/refal/plus/Symbol.java

    r3726 r3727  
    44
    55import java.math.BigInteger;
    6 
    7 import org.refal.plus.objects.Box;
    8 import org.refal.plus.objects.Channel;
    9 import org.refal.plus.objects.Table;
    10 import org.refal.plus.objects.Vector;
    116
    127public final class Symbol {
     
    2924
    3025    public static Comparable<?> newBox (String name) {
    31         return new Reference(name, new Box());
     26        return new Reference(name, new org.refal.plus.objects.Box());
    3227    }
    3328
    3429    public static Comparable<?> newChannel (String name) {
    35         return new Reference(name, new Channel());
     30        return new Reference(name, new org.refal.plus.objects.Channel());
    3631    }
    3732
     
    4540
    4641    public static Comparable<?> newTable (String name) {
    47         return new Reference(name, new Table());
     42        return new Reference(name, new org.refal.plus.objects.Table());
    4843    }
    4944
    5045    public static Comparable<?> newVector (String name) {
    51         return new Reference(name, new Vector());
     46        return new Reference(name, new org.refal.plus.objects.Vector());
    5247    }
    5348
Note: See TracChangeset for help on using the changeset viewer.