Re: pascal equivalent of python "sleep"
- From: thomas.mertes@xxxxxx
- Date: Thu, 8 May 2008 11:51:40 -0700 (PDT)
On 8 Mai, 20:09, Marco van de Voort <mar...@xxxxxxxx> wrote:
On 2008-05-08, thomas.mer...@xxxxxx <thomas.mer...@xxxxxx> wrote:
It is really fatigueing to plug seed7 as a resolution for inter-compiler
compability if there is only one implementation of seed(n)
I did not plug Seed7 as a solution for incompatible
Pascal dialects
Then for what did you plug it?
To give you a chance to complain about it.
Oh, I thought it was for all your users in this group.
Was already posted.
The next time I will ask for your permission.
Please do.
Sorry, I just decided not to do.
C has many implementations and the
portability problems which exist in Pascal are simply
not present.
Then find a sleep() in a strictly conforming C compiler!
Surprise you will not find a function like C in a C compiler.
A conforming C compiler is compiler + its std libraries, as they are
specified by the standard.
The C functions are part of a library and not of the compiler.
But a subset of content is specified by the standard.
Yes
You won't find it, it is POSIX, not C. (not to forget that even then
there are several, and various implementations have varying units for the
arguments, from ns to seconds)
The sleep's that I know use seconds.
IIRC there is a 'Sleep' under windows which should not be confused with
'sleep'.
I haven't been able to find a lowercase sleep() in msdn.
Ok, but AFAIK the 'sleep' function - when available - uses
seconds as parameter.
This has to do with the areas where C and Pascal came from.
BTW. There is some classic article about Pascal and C from Brian W.
Kernighan:http://www.lysator.liu.se/c/bwk-on-pascal.html
Which is IMHO incorrect. And even if there ever was truth about it, it
ceased after the first half of the eighties.
You obviously did not read the article.
I've read and discussed it many times. It is often brought up by trolls that
fail to set it in its proper historic setting.
Well, the article also contains points which are still
valid... But if you think that I am a troll, who just
tries to provoke diskussions, you are at the wrong lane.
You are right that there is currently only one implementation of Seed7,
but this implementation runs on various operating systems (unix, bsd,
linux windows) on different hardware and with several C compilers.
Windows= Windows 32/64/ce ?
Just try it.
If you can't be bothered to specify, I can't be bothered to find, so I
assume win32/x86 only.
I have not tried windows 64/ce therefore I cannot
tell about that.
Greetings Thomas Mertes
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
.
- References:
- pascal equivalent of python "sleep"
- From: Sean McIlroy
- Re: pascal equivalent of python "sleep"
- From: thomas . mertes
- Re: pascal equivalent of python "sleep"
- From: Marco van de Voort
- Re: pascal equivalent of python "sleep"
- From: thomas . mertes
- Re: pascal equivalent of python "sleep"
- From: Marco van de Voort
- Re: pascal equivalent of python "sleep"
- From: thomas . mertes
- Re: pascal equivalent of python "sleep"
- From: Marco van de Voort
- pascal equivalent of python "sleep"
- Prev by Date: Re: pascal equivalent of python "sleep"
- Next by Date: Re: pascal equivalent of python "sleep"
- Previous by thread: Re: pascal equivalent of python "sleep"
- Next by thread: Re: pascal equivalent of python "sleep"
- Index(es):
Relevant Pages
|
|