Adding of new operators currently requires modifying of language.yacc (and most likely lexer.h et al).
/ Henrik Grubbström (Lysator)
Previous text:
2003-05-15 17:00: Subject: top level infix operators
Would such a feature be possible, or is it something that should be avoided at all costs?
Just to make sure, I'm not necessarily talking operator overloading here.
For instance, i've on occation wanted to have
'**(double|int|string base,int|float power)
for doing powers of... stuff. Other things like setoperations, integration, etc... comes to mind.
I realise that interrest in this might be infinitly small - just probing.
/ Peter Lundqvist (disjunkt)