View Issue Details

IDProjectCategoryView StatusLast Update
0000286LDMudLPC Compiler/Preprocessorpublic2009-10-02 09:40
ReporterlarsAssigned To 
Status newResolutionopen 
Summary0000286: select() statement to complement switch()
DescriptionShort: select() statement to complement switch()
Date: Tue, 26 Mar 2002 11:21:59 -0700
From: Lars Duening <>
Type: Feature
State: New

Transform switch() back to it's old behaviour.

Implement select() { case... } with the following changes:

 - ints, floats, symbols, #'symbols, strings are
   allowed as values.
 - runtime error if no match is found (read: default required)
 - Allow typenames as labels: 'case object:'
TagsNo tags attached.
External Data (URL)



2009-10-02 09:40

administrator   ~0001417

What was the old behaviour of switch()? BTW: I don't think it is a wise thing to change the behaviour of switch() nowadays.
Typenames as labels could be done by a switch(typeof(a)) { }, although that is probably not what was suggested here...

Issue History

Date Modified Username Field Change
2004-11-27 00:51 lars New Issue
2009-10-02 09:40 zesstra Note Added: 0001417