OOP Library not morphing properly when reporting an object



Math Blocks script pic (93)
When reporting an object after transformations, it doesn’t morph properly (morph should be 1-2i-3j-4k) Instead, it is giving me the text representation of the object

In your

if <(x ::variables) \< [0]> then [] else [+]  

, the blank is treated as an empty slot. _morph receives your own object as a parameter, so that gets passed in as an empty slot.


This version uses letter (0 v) of [//] instead of the blank. And it works:

Alternatively, disable the implicit input parameters by adding an explicit one:


PS: You can also use join@:> to get an empty string.

Of course, that slipped my mind.

No, an empty join joins all variadic parameters. Here:

I was actually concerned about that, so I tested it first. It worked, so I went with it. I thought it might be because there were multiple collapsed joins. However, it turns out that unevaluated slots behave slightly differently:
untitled script pic (5)
Because the if/else reporter has unevaluated slots, join works as an empty text string. This is likely a bug and may change in the future, so you’re right it shouldn’t be used :).