More experiments with objects that do weird crap when placed in ordinary situations…
This one lets you wrap an object so that its apparent value changes over time.
Then we subclass it to do various things with @value
…
And ordinary calls like this suddenly get weird.
Output:
raboof raboofbaz 3 2 1
A different implementation of #value
…
…gives different results.
3 5 c e
Other stuff I wanna try:
Numeric whose value increases by the number of seconds since its creation. Range that iterates over its elements in random order. Numeric that always returns negative of itself. Boolean that returns opposite of itself. Boolean that alternates between returning true and false.