View Issue Details

IDProjectCategoryView StatusLast Update
0000149LDMud 3.5LPC Compiler/Preprocessorpublic2014-02-23 22:34
ReporterlarsAssigned ToGnomi  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version3.5.0 
Summary0000149: Typetracking fails on arrays
Descriptionint *r; r = ({ "12" });

sollte zumindest unter strict_types einen Typfehler im Compiler liefern.
Fehlerstellen:
  - der Type von ({ "12" }) ist nicht bekannt
  - der Typ wird bei der Zuweisung nicht geprueft.

------

Given the hackishness of the typetracking in the LPC compiler, I don't know if it can be fixed.
TagsNo tags attached.

Relationships

related to 0000721 resolvedGnomi RfC: Extended syntax for declaring arguments and variables holding multiple types 

Activities

zesstra

2009-10-06 02:27

administrator   ~0001490

I would be very nice to fix this. Fuchur, Gnomi can you estimate the feasibility? I don't know enough about the compiler right now. ;-)

zesstra

2014-02-23 22:34

administrator   ~0002232

This has been fixed with 0000721. At least the part of the compiler. Any checks at runtime will be added when with runtime type checks upon assignments.

Issue History

Date Modified Username Field Change
2004-11-26 19:20 lars New Issue
2009-10-06 02:27 zesstra Note Added: 0001490
2009-10-06 02:27 zesstra Project LDMud => LDMud 3.5
2014-02-23 22:28 zesstra Relationship added related to 0000721
2014-02-23 22:33 zesstra Assigned To => Gnomi
2014-02-23 22:33 zesstra Status new => assigned
2014-02-23 22:34 zesstra Note Added: 0002232
2014-02-23 22:34 zesstra Status assigned => resolved
2014-02-23 22:34 zesstra Fixed in Version => 3.5.0
2014-02-23 22:34 zesstra Resolution open => fixed