Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12706) Events framework
Home

[Freeciv-Dev] Re: (PR#12706) Events framework

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12706) Events framework
From: "Benedict Adamson" <badamson@xxxxxxxxxxx>
Date: Sun, 3 Apr 2005 03:56:00 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12706 >

Peter Schaefer wrote:
...
> I guess a scripting language would not be slow if it was only used for
> initialization or for rare events, like finding a hut, but it would be
> tempting to do things like have a hook that makes a script listen to
> common events

Indeed, once there is an event driven framework, it would be tempting to 
move ever more things to that framework. Receipt of almost any packet 
from a client is an 'event'.

...
> scripting:scheme (good: simple; bad:I'm no expert .. hard to read?)

Scheme is essentially stripped down LISP, so I guess there are many with 
at least some knowledge of how to program in it. With Scheme there is 
some chance that the AI could examine the event handling function itself 
to determine what it does, rather than requiring additional AI hints.





[Prev in Thread] Current Thread [Next in Thread]