[Gambas-user] Unix Date conversion

Timothy Marshal-Nichols timothy.marshal-nichols at ...247...
Wed Jul 26 07:48:06 CEST 2006



> -----Original Message-----
> From: gambas-user-bounces at lists.sourceforge.net
> [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit
> Minisini
> Sent: Tuesday, 25 July 2006 09:27
> To: mailing list for gambas users
> Subject: Re: [Gambas-user] Unix Date conversion
>
>
> On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote:
> > > -----Original Message-----
> > > From: gambas-user-bounces at lists.sourceforge.net
> > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay
> > > Sent: Monday, 24 July 2006 17:30
> > > To: mailing list for gambas users
> > > Subject: Re: [Gambas-user] Unix Date conversion
> > >
> > > ' Gambas class file
> > > ' Days in each month (Feb changes depending on leap years)
> > > ' Want the class to be dynamic.. there has to be a better way than
> > > ' declaring a useless variable at the top. RTFM this...
> > > PUBLIC NotStatic AS Boolean
> >
> > I agree. After all you do have none-static procedures/functions in the
> > class.
> >
> > Thanks
> >
> > 8-{)} Timothy Marshal-Nichols
> > <mailto: timothy.marshal-nichols at ...247...>
> >
>
> Why wanting to have dynamic methods, whereas they are not related to any
> object? Why created a false class for that?
>
> --
> Benoit Minisini
>

1. You may have a constructor and destructor in the object and want to
control when they are executed. Or even if the are executed - say if the
object was just used on one form that is a dialog. This is even more true if
your object calls on resources outside of Gambas.

2. Good programming languages 'encourage good programming practice' rather
than force the ideas the language developer on the language user. There
should be no penalty for using the language in a way not intended by the
language developer. This is why C and C++ have always been more popular then
Pascal. Both the C and Pascal languages were developed by people who were
influenced by the ideas of structured programming that were around at the
time. Both wanted to get away from the GOTO style of programming of
languages like COBOL. C took the first approach. C rewarded you for good
programming practice - Pascal forced you. This is one reason why you use
C/C++ to develop Gambas and not Pascal!

Thanks

8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>


> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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