Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

* is a better choice if you need something arithmetic-like, for instance

    vector3 a, b;
    float f = a *dot* b;
    vector3 c = a *cross* c;


Don't you need to overload two different operators to implement these named operators though?


No, they could equally well be two different overloads of a single operator.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: