Yes, that's allowable. It's probably not a good idea from the OO design standpoint, but it's allowable.
(In your first case, I'd override UNIVERSAL::DOES instead, but that's a 5.10 feature.)
In reply to Re^3: sv_derived_from vs. sub ISA
by chromatic
in thread sv_derived_from vs. sub ISA
by rehsack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |