C (205/207)

From:Andrew Bell
Date:31 Dec 99 at 10:56:40
Subject:Re: Version String again...

From: Andrew Bell <andrew.ab2000@bigfoot.com>

Hi Oliver,

On 30-Dec-99 you wrote: Re: [amiga-c] Re: Version String again...

>> I just tried OS3.5 version with "00" and "2000" and it works
>> perfectly. Maybe a bug in OS3.1 and down?
>
> Yes, the Version command in OS3.0 and OS3.1 shows a gibberish date
> using those years (and indeed 1999 also). As you say, it works just
> fine with the OS3.5 version.

Speaking of which, I've been doing some last minute Y2K checks myself
and have noticed that Hisoft C++ (v4.1) is at fault with Y2K. The
actual problem is associated with the C compiler symbols __DATE__ and
__DATE2__ which allow you to insert the current date into a string.

If I set my clock to 01-Jan-99 Hisoft works fine and produces:

__DATE__ = "Jan 01 1999"
__DATE2__ = "01.01.99"

but if I set my clock forward to 01-Jan-00 Hisoft gives me this:

__DATE__ = "Jan 01 19:0"
__DATE2__ = "01.01.:0"

I find this really annoying because I have lots of sources with
these symbols in it and I only bought this compiler less than 6 months
ago. I don't think Hisoft C++ is being updated anymore, my version
was last modified in 1997. :-/

I wonder how many programs on Aminet are going to fail with Y2K, I'd
say there'd be a lot, especially the older ones.

Regards, Andrew Bell.



+----------------------------------------+
email: mailto:andrew.ab2000@bigfoot.com or
mailto:andrew@ab2000.prestel.co.uk
web: http://www2.prestel.co.uk/ab2000
+----------------------------------------+
I am Norm of Borg. Bar tabs are futile, beer will be assimilated.