Kray-G / kinx

Looks like JavaScript, feels like Ruby, and it is a script language fitting in C programmers.
MIT License
237 stars 7 forks source link

Operator `<<` doesn't work for a string in a variable. #360

Closed Kray-G closed 2 years ago

Kray-G commented 2 years ago

The following code doesn't work.

class Console {
    public <<(msg) {
        System.print(msg);
        return this;
    }
}

var v = "v";
var COUT = new Console();
COUT << "a\n";  // Good.
COUT << v << "\n"; // doesn't work.