[Gambas-user] module/comp how to made like gambas normal

PICCORO McKAY Lenz mckaygerhard at ...626...
Mon Oct 16 04:04:28 CEST 2017


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 <taboege at ...626...>:

> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list