repo.or.cz
/
cslatevm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
943e5f7
)
Added "material impliciation" to Booleans.
author
Brian T. Rice
<briantrice@gmail.com>
Sat, 17 Apr 2010 16:40:09 +0000 (09:40 -0700)
committer
Brian T. Rice
<briantrice@gmail.com>
Sat, 17 Apr 2010 16:40:09 +0000 (09:40 -0700)
src/core/boolean.slate
patch
|
blob
|
blame
|
history
diff --git
a/src/core/boolean.slate
b/src/core/boolean.slate
index
91582e8
..
49bfd12
100644
(file)
--- a/
src/core/boolean.slate
+++ b/
src/core/boolean.slate
@@
-32,6
+32,9
@@
x@(Boolean traits) eqv: y@(Boolean traits) [x == y].
"Boolean Exclusive OR."
x@(Boolean traits) xor: y@(Boolean traits) [x eqv: y not].
+"Implication (not entailment)."
+x@(Boolean traits) --> y@(Boolean traits) [x not \/ y].
+
bool@(Boolean traits) and: block
"Conditional AND, but it can return the value of the block."
[bool ifTrue: block ifFalse: [False]].