View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000721 | LDMud 3.5 | LPC Language | public | 2010-02-01 16:39 | 2014-02-23 22:28 |
| Reporter | zesstra | Assigned To | Gnomi | ||
| Priority | low | Severity | feature | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Fixed in Version | 3.5.0 | ||||
| Summary | 0000721: RfC: Extended syntax for declaring arguments and variables holding multiple types | ||||
| Description | Maybe this can't be resolved in any decent/elegant manner... Checking of types (compile-time or runtime) can be of significant help to programmers. Unfortunately, once you want to have two types for an argument, you have to use <mixed> which disables all checks. Some syntax like string|string* strs; for a variable/argument able to hold a string or an array of strings (but no other type) would help in this case. This is the syntax we use in func_spec in the driver sources for defining the efuns. There may be syntaxes which are easier to implement in our compiler... | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-02-01 16:39 | zesstra | New Issue | |
| 2011-02-13 23:36 | Gnomi | Assigned To | => Gnomi |
| 2011-02-13 23:36 | Gnomi | Status | new => assigned |
| 2014-01-13 23:05 | Gnomi | Relationship added | parent of 0000829 |
| 2014-02-22 23:29 | Gnomi | Note Added: 0002221 | |
| 2014-02-22 23:29 | Gnomi | Status | assigned => resolved |
| 2014-02-22 23:29 | Gnomi | Fixed in Version | => 3.5.0 |
| 2014-02-22 23:29 | Gnomi | Resolution | open => fixed |
| 2014-02-23 22:28 | zesstra | Relationship added | related to 0000149 |