Opened 8 years ago
Closed 8 years ago
#706 closed bug (fixed)
struct definition: undefined types not detected
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | minor | Milestone: | 4-1-0 and higher |
Component: | singular-kernel | Version: | 4-0-2 |
Keywords: | struct undefined type | Cc: |
Description
newstruct
does not detect undefined types.
// testStruct.lib content version=" "; category = "tests"; info=""; static proc mod_init() { newstruct("TBoom", "TUndefined boom , int something "); newstruct("TWrong", "int value, TUndefined undefined "); }
Example:
LIB("testStruct.lib"); TWrong f; type(f.undefined); // int, wrong! TBoom g; // sometimes segfault , sometimes 'unknown type'
Note: See
TracTickets for help on using
tickets.