View Issue Details

IDProjectCategoryView StatusLast Update
0000579LDMud 3.5LPC Compiler/Preprocessorpublic2009-06-01 09:03
ReporterGnomi Assigned To 
Status newResolutionopen 
Platformi686OSDebian GNU/LinuxOS Version4.0
Summary0000579: Allow struct prototypes and definitions to be in different programs
DescriptionI 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. ;-)
TagsNo tags attached.


has duplicate 0000648 closedGnomi LDMud struct declarations need to be defined in the same object 


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2008-09-30 05:19 Gnomi New Issue
2009-06-01 09:01 zesstra Relationship added duplicate of 0000648
2009-06-01 09:03 zesstra Relationship deleted 0000648
2009-06-01 09:03 zesstra Relationship added has duplicate 0000648