I6/Puny -- Remind me, how do printing rules work again?

I have a small helper class

 Class Unimportant
  with
    before [;
      Drop: rfalse;
      default: "The ", (name) self (IsOrAre(self)), " not important.";
    ]
  has scenery;

It should work with a plural or singular. Compiles fine but crashes when I try examining the object: Error: Unknown opcode #0 at pc=77

I have also tried IsOrAre on its own. Same result. How do I use this printing-rule successfully?

print_ret (The) self, " ", (IsOrAre) self, " not important.";

Using (The) printing rule ensures that even objects which shouldn’t have an article are printed correctly, e.g. “John is not important.”. Since this means there is not a string first on the line, we need to add print_ret (Just writing a line that starts with a string is a shortcut for print_ret)

But then, there’s a shortcut printing rule for this situation:

print_ret (CObjIs) self, " not important.";
1 Like