View Issue Details

IDProjectCategoryView StatusLast Update
0000801LDMud 3.5LPC Compiler/Preprocessorpublic2021-04-16 21:59
ReporterSorcerer Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
Status closedResolutionwon't fix 
Product Version3.5.0 
Summary0000801: allow multiple includes in one statement
DescriptionIt would be a nice feature for the preprocessor to be able to deal with a statement like

#include "/my/path/*.inc"

We have some masters, that create different 'viruses' for players. In order to have a tidy code-layout, each viruses description and setup (several lfun-calls) are packed into individuals files, that are all included by the master. The above statement would render changes on the master itself upon addition/removal of virus descriptions obsolete and get rid of many lines of #include in the master.

The file lookup has not necessarily to be done by the driver - it would be sufficient, if the master-fun "include_file" was allowed to return an array of files that are then included in the order they are placed in the array.
TagsNo tags attached.

Activities

zesstra

2012-06-07 16:16

administrator   ~0002135

AFAIR that whole bunch of code assumes you get only one include per #include. I guess, the priority for rewriting that part is rather low for now.

Gnomi

2021-04-16 21:59

manager   ~0002612

We feel that the use case for this is rare and therefore not worth the effort.
And we also prefer that includes are spelled out, because their order matters.

Issue History

Date Modified Username Field Change
2012-01-10 14:03 Sorcerer New Issue
2012-06-07 16:16 zesstra Note Added: 0002135
2012-06-07 16:16 zesstra Priority normal => none
2012-06-07 16:16 zesstra Status new => confirmed
2012-06-07 16:16 zesstra Product Version => 3.5.0
2021-04-16 21:59 Gnomi Status confirmed => closed
2021-04-16 21:59 Gnomi Resolution open => won't fix
2021-04-16 21:59 Gnomi Note Added: 0002612