[Default] Seref Arikan <[EMAIL PROTECTED]> wrote:

> Well, for a small amount of components, maybe there is no difference,
> but for a bulky form with many controls, would not it be a big long
> list, which is unnecessaryly long. Does anyone remember the classic
> win32 message loop?.

Sure. In Delphi, the language supported it with a 'message' attribute on
methods, so it didn't need a big long switch statement :)

> On the original subject, no matter what burden it
> puts on the shoulder of designers, I'd like to find every piece of
> comfort in my favorite language, and using more types in switch would be
> fine :)

I think more types would be fine, as long as the expressions themselves
were constant. The types in C# that have good-quality literals (i.e.
excluding floating-point numbers) are handled by the switch statement -
including 'null' and strings.

-- Barry

-- 
http://barrkel.blogspot.com/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to