View Issue Details

IDProjectCategoryView StatusLast Update
0000390LDMud 3.3LPC Languagepublic2005-11-24 14:32
Reporterfippo Assigned Tolars 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version3.3 
Fixed in Version3.3 
Summary0000390: wrong return values from typeof
Descriptiontypeof does not return values according to sys/lpctypes.h (exec.h) but uses the constants from svalue.h instead.

Some values for
x -> typeof(x)

"foo" -> 3
5 -> 2
5.5 -> 7

Workaround is to simply change sys/lpctypes.h, but this information should be automatically generated from driver source code.

TagsNo tags attached.

Activities

lars

2005-06-19 20:42

reporter   ~0000374

Actually, it works as defined, as sys/lpctypes.h has both the compiler TYPE_ and the svalue T_ definitions:

typeof("foo") -> T_STRING
typeof(5.5) -> T_FLOAT
typeof(5) -> T_NUMBER

Though, it would be nice if the driver generated these files by itself - I think I have a different bug entry for that already.

Issue History

Date Modified Username Field Change
2005-06-02 01:12 fippo New Issue
2005-06-19 20:42 lars Status new => resolved
2005-06-19 20:42 lars Fixed in Version => 3.3
2005-06-19 20:42 lars Resolution open => no change required
2005-06-19 20:42 lars Assigned To => lars
2005-06-19 20:42 lars Note Added: 0000374
2005-11-24 14:32 lars Status resolved => closed