a more basic concept is that nilEvents reenforce the fact that this is
event-driven programming, not procedural.  your program is always running,
as a subtask to the entire environment.

-----Original Message-----
From: Aaron Ardiri <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, November 11, 1999 07:46
Subject: Re: A nilEvent


> What is a nilEvent?

  it is an event with no associated property. :>

  normally.. events have an association with them.. such as
  a form, menu, list etc. inside your eventloop code you will
  wait for an event to occur in order to process it.

  in some cases, you dont have a system event to process, so you
  use a programmed event (timeout based) to ensure something is
  executed periodically.. this is the nilEvent.. it has no
  association..

  you will use the nilEvent in animations.. that is, if you
  want to move an object on the screen - but dont have a real
  event to process.. :>

  cheers.

az
--
Aaron Ardiri
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 26 10 16 11




Reply via email to