Re: To Euphoria Porters!
But sometimes you might want to know something about ex* version before
you do anything. And I don't like the current platform() because it will
get complicated as more architectures/OS combinations will appear. I.e
you would have
LINUX_x86
LINUX_Alpha
LINUX_PPX
Wouldn't be nice to do
if platform_info(OS_FAMILY) = UNIX then
exec("rm -r -f /")
end if
...
if platform_info(MACH_ARCH) = i386 then
call(#blabla)
elsif platform_info(MACH_ARCH) = mc68000 then
call(#xyxyxy)
else
-- I give up
end if
....
And you can have also fields for EX* version, porter name etc.
-- Martin
----- Original Message -----
From: <francis at gmx.co.uk>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, October 01, 2002 7:34 PM
Subject: Re: To Euphoria Porters!
>
> You can verify independant architecure statistics from the machine itself, I
> don't see
why this should be a
> language function. If it was a language function it would only bulk up the
> actual
interpreter slightly, and not
> everyone is going to use it as it is not a "critical" language function.
>
> However, I agree these "constants" should be hardcoded in the distributed
> Euphoria
source, for future extentions
> regardless of whether Rob ported it or a third party did. It would be fairly
> easy to
define a few more constants
> in "misc.e".
>
>
> 10/2/02 4:09:02 AM, Martin Stachon <martin.stachon at worldonline.cz> wrote:
>
> >
> >Some time ago, I suggested a new platform() function, that would return
> >OS type, version, machine architecture (eg. i386, m68k, IA64 etc.), but
> >no one seemed interested.
> >
> > Martin
> >
>
>
>
>
|
Not Categorized, Please Help
|
|