Re: Event based language, does it exist?

Wayne Venables <wvenable@sfu.ca>
8 Sep 2000 01:53:19 -0400

          From comp.compilers

Related articles
Event based language, does it exist? polesen@nordija.com (Per Olesen) (2000-08-27)
Re: Event based language, does it exist? dancohen@nospam.canuck.com (Dan Cohen) (2000-09-02)
Re: Event based language, does it exist? cbbrowne@knuth.brownes.org (2000-09-02)
Re: Event based language, does it exist? mihai@cs.wisc.edu (Mihai Christodorescu) (2000-09-02)
Re: Event based language, does it exist? Joachim.Pimiskern@de.bosch.com (Joachim Pimiskern) (2000-09-07)
Re: Event based language, does it exist? peter@abbnm.com (2000-09-07)
Re: Event based language, does it exist? gneuner@dyn.com (2000-09-07)
Re: Event based language, does it exist? wvenable@sfu.ca (Wayne Venables) (2000-09-08)
Re: Event based language, does it exist? c_pew@mail.utexas.edu (Curtis Pew) (2000-09-08)
Re: Event based language, does it exist? jp@secher-web.dk (Jens Peter Secher) (2000-09-08)
Re: Event based language, does it exist? bonzini@gnu.org (2000-09-08)
Re: Event based language, does it exist? ian@five-d.com (2000-09-08)
Re: Event based language, does it exist? trollet@skynet.be (Atle) (2000-09-08)
Re: Event based language, does it exist? dancohen@nospam.canuck.com (Dan Cohen) (2000-09-08)
[12 later articles]
| List of all articles for this month |

From: Wayne Venables <wvenable@sfu.ca>
Newsgroups: comp.compilers,comp.lang.misc
Date: 8 Sep 2000 01:53:19 -0400
Organization: Excite@Home - The Leader in Broadband
References: 00-08-132
Keywords: design

On 27 Aug 2000 22:31:34 -0400, "Per Olesen" <polesen@nordija.com>
wrote:


>I'm trying to find a language which is based solely on events, but I
>do not know if it exists. What I do know is, that there is a whole lot
>of languages out there, so it should be strange if there isn't an
>event based one :-)


    Perhaps the most obvious is Visual Basic. In VB, you can declare
events just like you declare object methods and then raise those
events in the code. Microsoft also put events in their version of
Java to go with their GUI toolkit. Microsoft's C# also has events,
although implements the concept differently.


    I've never been too happy about the way Java does events. Having to
declare a class inside a class and do all this extra work just seems
like syntactic hell compared to simplicity of the same operation in
VB.


    You can implement a decent system of events in any language that
allows you to pass functions around as variables. I have, for
example, added event-like capibilities to PHP (www.php.net) by making
use of the ability to call functions (and object methods) by name.


Later,


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.