[pure-lang-svn] SF.net SVN: pure-lang: [342] pure/trunk/lib/prelude.pure
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-06-30 09:23:03
|
Revision: 342 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=342&view=rev Author: agraef Date: 2008-06-30 02:23:13 -0700 (Mon, 30 Jun 2008) Log Message: ----------- Add false and true constants, as requested by Jiri Spitz. Modified Paths: -------------- pure/trunk/lib/prelude.pure Modified: pure/trunk/lib/prelude.pure =================================================================== --- pure/trunk/lib/prelude.pure 2008-06-30 07:56:07 UTC (rev 341) +++ pure/trunk/lib/prelude.pure 2008-06-30 09:23:13 UTC (rev 342) @@ -62,9 +62,14 @@ infixl 9 ! !! ; // indexing, slicing infixr 9 . ; // function composition +/* The truth values. These are just integers in Pure, but sometimes it's + convenient to refer to them using these symbolic constants. */ + +def false = 0; def true = 1; + /* Pull in the primitives (arithmetic etc.) and the standard string functions. - Note that the system module is *not* included here, so you have to do that - yourself if your program does any I/O or uses other system functions. */ + Note that the math and system modules are *not* included here, so you have + to do that yourself if your program requires any of those operations. */ using primitives strings; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |