in reply to Implementing named infix operators with parser hook?
Regarding your updates, the custom op stuff isn't what you want. It doesn't allow you to define your own infix operators. The custom op stuff is what Ref::Util::XS does to make its functions even faster.
Subs written in XS run faster than subs written in Perl; that's obvious. But subs written in XS still don't run as fast as Perl built-ins like ref. The custom op code stuff allows XS code to be called as efficiently as built-ins. It doesn't have anything to do with parsing, so won't let you define an infix operator.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Implementing named infix operators with parser hook? (updated)
by LanX (Saint) on Aug 17, 2018 at 10:58 UTC | |
by tobyink (Canon) on Aug 17, 2018 at 12:42 UTC | |
by LanX (Saint) on Aug 17, 2018 at 12:51 UTC |