[xinf] DOM Events?

Lee McColl-Sylvester lee.mccoll at lyons-group.co.uk
Fri Jun 23 17:50:43 CEST 2006


True, but behind the scenes, one could evaluate the enum as a string at
concatonate it to say "e", so you'd end up with "e0" .... "en" in the
depths of the system, yet be able to use the enum to specify the event
on the surface.

 

Lee

 

 

 

 

________________________________

From: xinf-bounces at xinf.org [mailto:xinf-bounces at xinf.org] On Behalf Of
hank williams
Sent: 23 June 2006 16:39
To: xinf is not flash
Subject: Re: [xinf] DOM Events?

 

The problem with enums is that they are just numbers. They would not be
valid outside the given compilation unit and so would not communicate
meaning to a previously compiled piece of code  a piece of code that was
not sharing a common file. 

Regards
Hank

On 6/23/06, Lee McColl-Sylvester <lee.mccoll at lyons-group.co.uk> wrote: 

I was thinking more along the lines of using enums or something similar.

 

Lee

 

 

 

________________________________

From: xinf-bounces at xinf.org [mailto: xinf-bounces at xinf.org
<mailto:xinf-bounces at xinf.org> ] On Behalf Of hank williams
Sent: 23 June 2006 16:18
To: xinf is not flash


Subject: Re: [xinf] DOM Events?

 

I'm not sure how this helps. You cant guarantee that any "type" in the
programmatic sense really implies any particular "type" in a semantic
sense.

Hank.

On 6/23/06, Lee McColl-Sylvester <lee.mccoll at lyons-group.co.uk> wrote:

What about a dynamic type? Surely, so long as it's unique to the event
to be raised, then all should work the way the coder plans?

Lee



-----Original Message-----
From: xinf-bounces at xinf.org [mailto: xinf-bounces at xinf.org
<mailto:xinf-bounces at xinf.org> ] On Behalf Of
daniel fischer
Sent: 23 June 2006 16:01
To: xinf at xinf.org
Subject: Re: [xinf] DOM Events? 

"hank williams" <hank777 at gmail.com> (on Fri, 23 Jun 2006 10:04:59
-0400):

  > I need a way to communicate semantic
  > intent of the event. Your system doesnt do that 

seems you are right here. semantics in nicolas' proposal are implied by
the dispatcher variable "name". i'd prefer explicit "event types" ("what
happened?") too. i cannot think of anythin better than string, although 
using strings also poses problems...

deadlocked?

-dan

--
http://0xDF.com/
http://iterative.org/

--
xinf is not flash 
http://xinf.org/

--
xinf is not flash
http://xinf.org/

 



--
xinf is not flash
http://xinf.org/



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xinf.org/pipermail/xinf/attachments/20060623/5ebf4dc6/attachment-0001.html 


More information about the xinf mailing list