Re: [Vala] Operator overloading



Hi,

operator overloading might bring some more readable code. But sometimes
they have heavy side effects. Here is just a tiny example in c++:

#include<iostream>

int main( int argc, char* argv[] )
{
    int i=0;
    std::cout << ++i << ++i <<std::endl;
    std::cout << i++ << i++ <<std::endl;
    return 0;
}

This is readable but leads to total differen behavior. I don't think we
should add operator overloading in vala.

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]