Nice/stdlib/nice/lang native.nice,1.10,1.11

Arjan Boeijink <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/stdlib/nice/lang
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4762/F:/nice/stdlib/nice/lang

Modified Files:
	native.nice 
Log Message:
Implemented instanceof on option types.

Index: native.nice
===================================================================
RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/native.nice,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** native.nice	8 Aug 2004 10:45:36 -0000	1.10
--- native.nice	9 Mar 2005 14:47:48 -0000	1.11
***************
*** 40,42 ****
  */
  <T,U> boolean `instanceof`(T value, Class<U>) =
!   inline nice.lang.inline.Instanceof();
--- 40,48 ----
  */
  <T,U> boolean `instanceof`(T value, Class<U>) =
!   inline nice.lang.inline.Instanceof("sure");
! 
! /**
!    Tests whether a value is either null or an instance of a given class.
! */
! <T,U> boolean `optionInstanceof`(?T value, Class<U>) =
!   inline nice.lang.inline.Instanceof("option");



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.