[Nice-commit] Nice/stdlib/nice/lang prelude.nice,1.35,1.36 enum.nice,1.5,1.6 Native.java,1.16,1.17
Brought to you by:
bonniot
From: <bo...@us...> - 2003-12-12 12:55:28
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang In directory sc8-pr-cvs1:/tmp/cvs-serv7669/stdlib/nice/lang Modified Files: prelude.nice enum.nice Native.java Log Message: Removed uses of 'object(...)', which is not needed anymore. Index: prelude.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/prelude.nice,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** prelude.nice 19 Nov 2003 16:04:45 -0000 1.35 --- prelude.nice 12 Dec 2003 12:55:25 -0000 1.36 *************** *** 77,82 **** /* Allows to consider any nice object as an instance of java.lang.Object */ ! <Any T> Object object(T) = native Object Native.object(Object); /** Unsafe cast operator. UNSAFE! */ --- 77,83 ---- /* Allows to consider any nice object as an instance of java.lang.Object + @deprecated object(...) is not needed any more: any value is an Object. */ ! <T> ?Object object(T x) = x; /** Unsafe cast operator. UNSAFE! */ Index: enum.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/enum.nice,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** enum.nice 27 Nov 2003 23:37:08 -0000 1.5 --- enum.nice 12 Dec 2003 12:55:25 -0000 1.6 *************** *** 31,35 **** for (elem : this.family()) if (this.name.equals(elem.name)) ! return object(elem); throw new InvalidObjectException("unknown enum element"); --- 31,35 ---- for (elem : this.family()) if (this.name.equals(elem.name)) ! return elem; throw new InvalidObjectException("unknown enum element"); Index: Native.java =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/Native.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Native.java 19 Nov 2003 16:04:46 -0000 1.16 --- Native.java 12 Dec 2003 12:55:25 -0000 1.17 *************** *** 23,28 **** public final class Native { - public static Object object(Object o) { return o; } - // Operations on "polymorphic" arrays // Arrays of unknown component type are of type Object --- 23,26 ---- |