Re: pascal equivalent of python "sleep"



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.
.



Relevant Pages

  • Re: pascal equivalent of python "sleep"
    ... Then find a sleep() in a strictly conforming C compiler! ... Surprise you will not find a function like C in a C compiler. ... linux windows) on different hardware and with several C compilers. ... If you can't be bothered to specify, I can't be bothered to find, so I ...
    (comp.lang.pascal.misc)
  • Re: C++ programming migration from DOS to Windows
    ... compiler, so the current compiler is quite competitive WRT to ... There are a couple of ports of gcc to Windows. ... Comeau is more or less unique: the best language conformance you can ... IDEs: Microsoft and Borland have both produced decent IDEs in the past, ...
    (comp.lang.cpp)
  • Re: Native Code vs PCode OT
    ... Windows 1.0 was written in Pascal. ... > a decent C compiler but did have one of the best rated Pascal compilers. ... It is a myth. ... The fact that memory managers often needed to be tweaked for some ...
    (microsoft.public.vb.general.discussion)
  • Re: Future for VC++ Programmers
    ... bluescreening the system (crash X windows). ... Especially the kind who speak their native language as a second ... I don't want an environment in which the compiler, the linker, and the debugger will, at ...
    (microsoft.public.vc.mfc)
  • Re: Sweeney presentation "The Next Mainstream Language"
    ... Specify int to be more specific than real. ... possibly helped by programmer annotations or checks. ... test just before the access to make the compiler see that the index is ... he included compiler-checked manual region allocation in Cyclone. ...
    (comp.lang.functional)