Murga-Projects Forums

Full Version: Calling object and calling function in murgaLua...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I noticed that we can call most of muraLua functions in this way :

Code:
fltk.Fl_Window(x, y, width, height, "Title")

instead of :

Code:
fltk:Fl_Window(x, y, width, height, "Title")

( see the dot . instead of the colon : ), but obviously only for murgaLua functions, not for calling an object method.

Quote:
win = fltk.Fl_Window(x, y, width, height, "Title")
but
win:make_current()

Personally, I find it's clearer and more coherent.

Reference URL's