# HG changeset patch # User IBBoard # Date 1506106093 -3600 # Node ID 409249712590d02e406bd46935dfb6ece29e28d7 # Parent eac30c1b92da59e7f6f7ac360a4a35cdafd74cb1 Add final experimentation and note about DSL diff -r eac30c1b92da -r 409249712590 2-Io/day3-DSL.io --- 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