f-020326-0

ldmud-3.2.9/src/bugs/f-020326-0 · 445 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: select() statement to complement switch()
Date: Tue, 26 Mar 2002 11:21:59 -0700
From: Lars Duening <c-lars.duening@wcom.com>
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:'

Site Stats

Snippets: 1791
Codebases: 571