Barry, you had to say that did not you? Now I can add another "I want
this" item to my list of "shameless demands for a hypotetical language"
list. Really nice feature...
Regards
Seref

Barry Kelly wrote:

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




===================================
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