Example #1
0
 private static int Main()
 {
     VT vt = new VT(100);
     VT what = new VT(99);
     vt = VT.add(vt, what);
     vt = VT.sub(vt, what);
     return vt._m_n;
 }
Example #2
0
        private static int Main()
        {
            VT vt   = new VT(100);
            VT what = new VT(99);

            vt = VT.add(vt, what);
            vt = VT.sub(vt, what);
            return(vt._m_n);
        }
Example #3
0
        private VT sub(VT what) { _m_n -= what._m_n; return this; }   //this will be implemented via NEG+JMP in IL

        private static int Main()
        {
            VT vt = new VT(100);
            VT what = new VT(99);
            vt = vt.add(what);
            vt = vt.sub(what);
            if (vt._m_n != 100)
                return vt._m_n;
            VT what2 = new VT(96);
            vt.add(what2);
            vt.sub(what2);
            return vt._m_n;
        }
Example #4
0
        }                                                             //this will be implemented via NEG+JMP in IL

        private static int Main()
        {
            VT vt   = new VT(100);
            VT what = new VT(99);

            vt = vt.add(what);
            vt = vt.sub(what);
            if (vt._m_n != 100)
            {
                return(vt._m_n);
            }
            VT what2 = new VT(96);

            vt.add(what2);
            vt.sub(what2);
            return(vt._m_n);
        }
Example #5
0
 private static VT sub(VT me, VT what) { me._m_n -= what._m_n; return me; }
Example #6
0
 private static VT add(VT me, VT what) { me._m_n += what._m_n; return me; }
Example #7
0
 private static VT sub(VT me, VT what)
 {
     me._m_n -= what._m_n; return(me);
 }
Example #8
0
 private static VT add(VT me, VT what)
 {
     me._m_n += what._m_n; return(me);
 }
Example #9
0
 private static void Test(VT arg1, ref VT arg2)
 {
     arg2._v = 100;
     arg1._v = 10;
 }
Example #10
0
 private VT sub(VT what)
 {
     _m_n -= what._m_n; return(this);
 }                                                             //this will be implemented via NEG+JMP in IL
Example #11
0
 private VT add(VT what)
 {
     _m_n += what._m_n; return(this);
 }
Example #12
0
 private VT sub(VT what) { _m_n -= what._m_n; return this; }   //this will be implemented via NEG+JMP in IL
Example #13
0
 private VT add(VT what) { _m_n += what._m_n; return this; }
Example #14
0
 private static void Test(VT arg1, ref VT arg2)
 {
     arg2._v = 100;
     arg1._v = 10;
 }