Beispiel #1
0
    static int Main()
    {
        sprint.print();
        var x = new writer();
        var y = new writer();

        x.print();
        y.print();
        y.s = "new string\n";
        y.print();
        var z = new swriter();

        z.s = "hello from swriter\n";
        z.print();
        return(0);
    }
Beispiel #2
0
    static int Main()
    {
        sprint.print();
        var y = new writer();
        var x = y;

        y.s = "new string\n";
        x.print();
        y.print();
        return(0);
    }