Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > Re: pascal equi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 38 Topic 791 of 811
Post > Topic >>

Re: pascal equivalent of python "sleep"

by thomas.mertes@[EMAIL PROTECTED] May 8, 2008 at 05:58 AM

On 8 Mai, 01:42, Sean McIlroy <sean_mcil...@[EMAIL PROTECTED]
> wrote:
> hi all
>
> i'm trying to brush up my pascal skills after considerable time away.
> in python there's a function "sleep" that essentially means "count
> your toes for <number> seconds". how does one say this in pascal?

As you can see from the other answers, there
is no 'sleep' in standard Pascal. Therefore it
depends on your compiler and/or operating system.
The 'sleep' function itself has it's roots in the
C / UNIX world.

With such tings as 'sleep' and many other functionality
your program will depend on your Pascal compiler and
become un****table. This is a sad story. If you want
to write ****table programs (which run under various
operating systems and compilers) you will have a hard
time doing it in Pascal. Pascal was my favorite language
for approx. 10 years. Such things as otherwise/else
clauses and file buffer variables not consistent between
different compilers make ****tability hard.

That I still admire Pascal's concepts can be seen
when you look at Seed7. The statements are in the
Pascal/Modula/Ada tradition. BTW. Seed7 does have a
'time.s7i' library which contains the types 'time' and
'duration' and the 'wait' function (which gets a
'duration' as parameter). So you can just do:
wait(1 . SECONDS);

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, ****table, runs under linux/unix/windows.
 




 38 Posts in Topic:
pascal equivalent of python "sleep"
Sean McIlroy <sean_mci  2008-05-07 16:42:05 
Re: pascal equivalent of python "sleep"
CBFalconer <cbfalconer  2008-05-07 20:38:32 
Re: pascal equivalent of python "sleep"
Sean McIlroy <sean_mci  2008-05-07 19:39:20 
Re: pascal equivalent of python "sleep"
Martin Liddle <news09@  2008-05-08 06:55:04 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 05:58:47 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 13:19:46 
Re: pascal equivalent of python "sleep"
Scott Moore <samiam@[E  2008-05-08 07:55:32 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 08:07:24 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 15:34:45 
Re: pascal equivalent of python "sleep"
Scott Moore <samiam@[E  2008-05-08 08:08:54 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 17:52:47 
Re: pascal equivalent of python "sleep"
Scott Moore <samiam@[E  2008-05-08 14:06:56 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-09 20:18:09 
Re: pascal equivalent of python "sleep"
Waldek Hebisch <hebisc  2008-05-09 21:34:21 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-10 19:08:38 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 10:05:23 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 18:09:24 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 10:33:23 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 18:11:21 
Re: pascal equivalent of python "sleep"
Scott Moore <samiam@[E  2008-05-08 13:40:02 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-12 12:18:59 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 10:36:35 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-09 19:58:23 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 11:51:40 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-08 12:17:12 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-08 20:06:32 
Re: pascal equivalent of python "sleep"
CBFalconer <cbfalconer  2008-05-08 18:22:22 
Re: pascal equivalent of python "sleep"
CBFalconer <cbfalconer  2008-05-08 18:29:11 
Re: pascal equivalent of python "sleep"
CBFalconer <cbfalconer  2008-05-08 19:23:17 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-09 08:24:33 
Re: pascal equivalent of python "sleep"
Scott Moore <samiam@[E  2008-05-09 10:47:57 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-09 19:55:35 
Re: pascal equivalent of python "sleep"
Marco van de Voort <ma  2008-05-09 20:08:19 
Re: pascal equivalent of python "sleep"
Florian.Klaempfl@[EMAIL P  2008-05-09 10:43:38 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-09 13:28:37 
Re: pascal equivalent of python "sleep"
Florian.Klaempfl@[EMAIL P  2008-05-09 13:45:58 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-09 13:52:25 
Re: pascal equivalent of python "sleep"
thomas.mertes@[EMAIL PROT  2008-05-09 14:11:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:03:28 CDT 2008.