changeset 47:409249712590

Add final experimentation and note about DSL
author IBBoard <dev@ibboard.co.uk>
date Fri, 22 Sep 2017 19:48:13 +0100
parents eac30c1b92da
children 46a807289724
files 2-Io/day3-DSL.io
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/2-Io/day3-DSL.io	Wed Sep 20 20:48:37 2017 +0100
+++ b/2-Io/day3-DSL.io	Fri Sep 22 19:48:13 2017 +0100
@@ -69,9 +69,19 @@
     return Range (call target) to(call evalArgAt(1))
 )
 
+
 # But presumably this will break, because there's no "atPutThing" method
 a := 1
 b := 5
-range := a : b
+#range := a : b
 # Yep - "Exception: Number does not respond to ':'"
-# So you've got to be careful for reusable operators
\ No newline at end of file
+# So you've got to be careful for reusable operators
+
+# We can't even define the method and have it Just Work™.
+# I know officially give up. This is undocumented and unclear.
+#
+#atPutThing := method(start, end,
+#    return Range(start) to(end)
+#)
+#
+#range : 1 3
\ No newline at end of file