View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000651 | LDMud 3.6 | General | public | 2009-06-03 12:37 | 2021-04-06 21:27 |
Reporter | Gnomi | Assigned To | Gnomi | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | i686 | OS | Debian GNU/Linux | OS Version | 4.0 |
Fixed in Version | 3.6.4 | ||||
Summary | 0000651: lvalue 3: Lvalues to mapping entries | ||||
Description | The following code: mapping m = ([:1]); m[1][2] = 5; gives an error and leaves m as ([1: 0]). Therefore I suggest a special LVALUE_(UN)PROTECTED_MAPENTRY which contains a (in protected lvalues a refcounted) pointer to the mapping and a copy of the index. Assignments to this lvalue would create the mapping entry, but it can not be indexed. When used as an rvalue it has to lookup in the mapping, because in the meantime this key could have been created. (In that case it could be changed to a normal LVALUE_PROTECTED on the fly.) | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-03 12:37 | Gnomi | New Issue | |
2009-06-03 12:37 | Gnomi | Status | new => assigned |
2009-06-03 12:37 | Gnomi | Assigned To | => Gnomi |
2009-06-03 12:38 | Gnomi | Relationship added | child of 0000546 |
2009-06-03 12:38 | Gnomi | Relationship added | parent of 0000148 |
2021-04-06 21:26 | Gnomi | Project | LDMud 3.5 => LDMud 3.6 |
2021-04-06 21:26 | Gnomi | Category | Runtime => General |
2021-04-06 21:27 | Gnomi | Status | assigned => resolved |
2021-04-06 21:27 | Gnomi | Resolution | open => fixed |
2021-04-06 21:27 | Gnomi | Fixed in Version | => 3.6.4 |