View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000579 | LDMud 3.5 | LPC Compiler/Preprocessor | public | 2008-09-30 03:19 | 2009-06-01 07:03 |
Reporter | Gnomi | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | i686 | OS | Debian GNU/Linux | OS Version | 4.0 |
Summary | 0000579: Allow struct prototypes and definitions to be in different programs | ||||
Description | I had a talk with Bardioc@Evermore about not being able to put struct and function prototypes into one file und define them later in another file. The driver cannot handle this, because it internally identifies structs in function argument lists directly by its struct_type_t, and both, the original struct_type_t and its entry in the argument type list, may be problematic to modify later on when its true definition appears. That's why it requires a struct prototype to be defined in the same file. So what's needed is a struct table just like the function table with its ability to complete a prototype by an inheritor later on, where then the argument type would just point into. (And if we want to have a lot of fun we can try to make re- and cross-definitions possible. ;-) | ||||
Tags | No tags attached. | ||||