Changeset 6305


Ignore:
Timestamp:
03/17/04 13:23:32 (17 years ago)
Author:
piso
Message:

importSymbol()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Package.java

    r6302 r6305  
    33 *
    44 * Copyright (C) 2002-2004 Peter Graves
    5  * $Id: Package.java,v 1.51 2004-03-17 12:59:03 piso Exp $
     5 * $Id: Package.java,v 1.52 2004-03-17 13:23:32 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    307307        Symbol sym = findAccessibleSymbol(symbol.getName());
    308308        if (sym != null && sym != symbol) {
    309             StringBuffer sb = new StringBuffer("the symbol ");
     309            StringBuffer sb = new StringBuffer("The symbol ");
    310310            sb.append(sym.getQualifiedName());
    311311            sb.append(" is already accessible in package ");
    312312            sb.append(name);
     313            sb.append('.');
    313314            signal(new PackageError(sb.toString()));
    314315            return;
    315316        }
    316317        internalSymbols.put(symbol.getName(), symbol);
     318        if (symbol.getPackage() == NIL)
     319            symbol.setPackage(this);
    317320    }
    318321
Note: See TracChangeset for help on using the changeset viewer.