View Issue Details

IDProjectCategoryView StatusLast Update
0000721LDMud 3.5LPC Languagepublic2014-02-23 23:28
Reporterzesstra Assigned ToGnomi  
PrioritylowSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version3.5.0 
Summary0000721: RfC: Extended syntax for declaring arguments and variables holding multiple types
DescriptionMaybe 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...
TagsNo tags attached.

Relationships

parent of 0000829 resolvedGnomi LDMud void * 
related to 0000149 resolvedGnomi LDMud 3.5 Typetracking fails on arrays 

Activities

Gnomi

2014-02-23 00:29

manager   ~0002221

This is implemented, see tag 3.5.0.2. :-)

Issue History

Date Modified Username Field Change
2010-02-01 17:39 zesstra New Issue
2011-02-14 00:36 Gnomi Assigned To => Gnomi
2011-02-14 00:36 Gnomi Status new => assigned
2014-01-14 00:05 Gnomi Relationship added parent of 0000829
2014-02-23 00:29 Gnomi Note Added: 0002221
2014-02-23 00:29 Gnomi Status assigned => resolved
2014-02-23 00:29 Gnomi Fixed in Version => 3.5.0
2014-02-23 00:29 Gnomi Resolution open => fixed
2014-02-23 23:28 zesstra Relationship added related to 0000149