[Gambas-user] Class info contradicts by Gambas added class info
Willy Raets
willy at ...2734...
Sat Sep 20 02:31:21 CEST 2014
On za, 2014-09-20 at 00:19 +0100, John Leake wrote:
> Thank you. Should the documentation in the wiki also be updated to
> reflect this new behaviour ?
I don't think so as the fix should make Gambas confirm the
documentation :)
Modules normally don't have the _new public method. As a matter of fact
modules are static classes.
When creating a static class yourself (so not using a module, but a
class with create static, as in my case), you normally don't implement a
_new public method either.
The goal of a static class is to provide properties, functions and
methods that can't be instantiated (including the class itself, as that
is of very little practical use).
If you want a class that can be instantiated you normally use a
non-static class. At least to my understanding of the matter.
Please correct me if I'm wrong.
>
> On 20/09/14 00:12, Benoît Minisini wrote:
> > Le 20/09/2014 01:05, Benoît Minisini a écrit :
> >> Le 20/09/2014 01:02, Benoît Minisini a écrit :
> >>>
> >>> Can you send your project? Normally the sentence "This class is
> >>> creatable" is not display if you don't have a "_new" public method.
> >>>
> >>> Regards,
> >>>
> >>
> >> Sorry, it is displayed when the help comes from the source code! I fix
> >> that...
> >>
> >
> > OK, it should be fixed in revision #6490.
> >
> > Regards,
> >
>
> ------------------------------------------------------------------------------
> Slashdot TV. Video for Nerds. Stuff that Matters.
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Kind regards,
Willy (aka gbWilly)
http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org
More information about the User
mailing list