[Gambas-user] class vs module : usage property, behabior usage

Fabien Bodard gambas.fr at ...626...
Sat Nov 9 23:27:38 CET 2013


A module is a static class.

It's like using the static keyword on each procedure of a class... And
a procedure is not instanciable so all other classe call the same
instance in fact.

2013/11/9 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> in development another manpower make factory connections
> to postgres database as module, and i use class instanciation
> for connections to database..
>
> what its the behabior difference and implicit consecuences.. ?
> i mean, my partner call directly as static methods/functions
> the create¡ion of conections, making tables etc,
> rather than me, that instanciates the class and then call functions
>
> or at least what its the difference if  i use only modules event
> classes in a project?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list