[Gambas-user] A little bit of Date Testing

Benoît Minisini g4mba5 at gmail.com
Wed Jun 5 18:39:41 CEST 2019

Le 05/06/2019 à 18:00, Cedron Dawg a écrit :
> Hmmmmmmmmmmm,
> If the interpreter does an implicit type conversion from string to date automatically, can't then it actually be considered a conversion function?
> Would you rather see the "CDate()" explicitly in code?

Yes. You should never use Date() with a string, if you don't know what 
you are doing exactly (because your string is assumed to be an UTC date).

But it's my fault anyway. I should have only allowed the Date datatype 
in the one-argument case.

Benoît Minisini

More information about the User mailing list