Re: [Gambas-user] module/comp how to made like gambas normal
Brought to you by:
gambas
|
From: PICCORO M. L. <mck...@gm...> - 2017-10-16 02:04:35
|
interesting.. so for each funtion a module.. umm ok thanks but that info must also be in the wiki... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-10-15 15:00 GMT-04:00 Tobias Boege <ta...@gm...>: > On Sun, 15 Oct 2017, PICCORO McKAY Lenz wrote: > > i want to make a component that their rutines can be uses directly and > not > > "module.subrutine(arg)" i like th use as "rutine(arg)" > > > > hoq cab i made that? > > > > AFAIK real routines have to be built into the compiler so you can't add > them with just a component. However, you can make a module, say MyFunc, > and give it the special _call method [1]. The you can use the module name > like a function, i.e. call MyFunc(), and it will call the _call() method. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/cat/special > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |