Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tatype.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-09-01 15:53:49 (GMT)
committer Marion <marion.zepf@gmail.com>2013-09-01 15:53:49 (GMT)
commit03d5530b18a5410864d707c372be2a7eb0ce911c (patch)
tree834c0d9d8c7bd5d17c0bf0183082fc44c045ed2a /TurtleArt/tatype.py
parentf6b5f9c0fad22af600977aead337e8fc1abd124b (diff)
new Type: 'bool', cannot be converted to any other Types
- The different shapes of docks for booleans and other values disallow conversion anyway.
Diffstat (limited to 'TurtleArt/tatype.py')
-rw-r--r--TurtleArt/tatype.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/TurtleArt/tatype.py b/TurtleArt/tatype.py
index 14f1c9e..fdf7659 100644
--- a/TurtleArt/tatype.py
+++ b/TurtleArt/tatype.py
@@ -53,12 +53,13 @@ class TypeDisjunction(tuple,Type):
TYPE_OBJECT = Type('object', 0)
+TYPE_BOOL = Type('bool', 5)
TYPE_CHAR = Type('char', 1)
TYPE_COLOR = Type('color', 2)
TYPE_FLOAT = Type('float', 3)
TYPE_INT = Type('int', 4)
-TYPE_NUMBER = Type('number', 6) # shortcut to avoid a TypeDisjunction between
-# TYPE_FLOAT and TYPE_INT
+TYPE_NUMBER = Type('number', 6) # shortcut to avoid a TypeDisjunction
+ # between TYPE_FLOAT and TYPE_INT
TYPE_NUMERIC_STRING = Type('numeric string', 7)
TYPE_STRING = Type('string', 9)
# TODO add list types