4 ms·
I wonder if using a generic procedure would work better than redefining + outright. If you opened up Ao and typed (+ 1 1) at the REPL, would you see 2 as the r
by davexunit 10y ago
I wonder if using a generic procedure would work better than redefining + outright. If you opened up Ao and typed (+ 1 1) at the REPL, would you see 2 as the result or a token object?
- mkeeter 10y agoThe redefined + only behaves differently when one or more of its arguments is a token object, so normal math works fine. Generic procedures may be a cleaner way to do this, but I only discovered GOOPS after this implementation was already working.
- davexunit 10y ago>The redefined + only behaves differently when one or more of its arguments is a token object, so normal math works fine. Ah yes, I'm just blind and missed the implementation in your article. Thanks for explaining!