[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/ilyabelow/daScript/master/examples/tutorial/tutorial09.das [Back]  [Original]

// options persisten_heap   // this option is not necessary, we are setting this up from the C++ side

require tutorial_09

var count = 0

class Foo
    def Foo
        print("creating new Foo\n")
    def bar
        print("from Foo::bar\n")

[export]
def test
    count ++
    if count == 1
        print("FIRST CALL:\n")
        // first time call - we create lambda
        var f = new Foo()
        set_lambda() bar()
    elif count == 2
        pass
    else
        pass



Web Proxy Viewer  |  New URL  |  Original Page