Murga-Projects Forums
Calling object and calling function in murgaLua... - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Calling object and calling function in murgaLua... (/showthread.php?tid=431)


Calling object and calling function in murgaLua... - Bereb - 10-01-2014 08:53 PM

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.