Changeset 4253
- Timestamp:
- 10/08/03 17:26:49 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/Primitives.java
r4252 r4253 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: Primitives.java,v 1.46 4 2003-10-08 14:56:36piso Exp $5 * $Id: Primitives.java,v 1.465 2003-10-08 17:26:49 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 1858 1858 { 1859 1859 public LispObject execute(LispObject first, LispObject second, 1860 LispObject third) throws ConditionThrowable 1860 LispObject third) 1861 throws ConditionThrowable 1861 1862 { 1862 1863 try { … … 1875 1876 { 1876 1877 return new Vector(args); 1878 } 1879 }; 1880 1881 // ### %vset 1882 // %vset vector index new-value => new-value 1883 private static final Primitive3 _VSET = 1884 new Primitive3("%vset", PACKAGE_SYS, false) 1885 { 1886 public LispObject execute(LispObject first, LispObject second, 1887 LispObject third) 1888 throws ConditionThrowable 1889 { 1890 try { 1891 ((AbstractVector)first).set(Fixnum.getValue(second), third); 1892 return third; 1893 } 1894 catch (ClassCastException e) { 1895 throw new ConditionThrowable(new TypeError(first, "vector")); 1896 } 1877 1897 } 1878 1898 };
Note: See TracChangeset
for help on using the changeset viewer.