List Info

Thread: Operator confusion




Operator confusion
country flaguser name
United States
2007-05-08 16:53:46

I have a class which inherits two binary operators (aliases "+" and "*").
I'm trying to define two unary operators with same aliases. My unary "+" is
ok but my unary "*" generates the following error:

----------------------------------------------------------
---
Error code: VFAV(1)
Error: alias clause lists an operator for a feature such that
it is not a query or
its argument number is not 0 for unary operator or
its argument number is not 1 for binary operator or
class has other feature with the same alias name and argument number.
What to do: ensure that feature is a query and has no arguments for unary
operator or has one argument for binary operator and class has no other
feature with the same operator name and the same number of arguments.
----------------------------------------------------------
---

AFAICS, VFAV(1) is not being violated in any way, and the error persists
even if I remove the inherited binary declaration of "*". Since "*" is not a
special symbol, according to ECMA, what's wrong? Could it be a bug?

Thanks in advance,

Rosivaldo.





_______________________________________________________
Yahoo! Mail - Sempre a melhor opção para você!
Experimente já e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )