View Issue Details

IDProjectCategoryView StatusLast Update
0000765LDMud 3.5LPC Compiler/Preprocessorpublic2014-02-23 23:03
Reporterzesstra Assigned ToGnomi  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version3.5.0Fixed in Version3.5.0 
Summary0000765: Disallow the processing of void values
DescriptionDuring the discussion about bug 0000718 we came to the conclusion, that it is not sufficient to disallow only assignments of void values to variables, but we need to prevent any processing of them in expressions as well, e.g.
(foo ? bar : void-fun)
voidfun + non-void-value
voidfun - non-void-value
fun(voidfun);
etc. pp.
TagsNo tags attached.

Relationships

related to 0000829 resolvedGnomi LDMud void * 
parent of 0000718 resolvedGnomi LDMud 3.5 Disallow assignments of 'void' values to variables 

Activities

Gnomi

2011-01-25 15:52

manager   ~0001961

In the grammar there are only two things that have to be handled specially: function calls and comma expressions. So it might be a way to introduce two non-terminals voidexpr (maybe void) and nonvoidexpr (is not void). The problem is not to introduce ambiguities (as every voidexpr can be a nonvoidexpr, and every nonvoidexpr is alo a voidexpr). Perhaps we need some more non-terminals (a set classifying the origin (can or cannot be guaranteed non-void) and a set for the use (maybe void or must not be void)).

zesstra

2014-02-23 23:03

administrator   ~0002234

Should be fixed with 0000721.

Issue History

Date Modified Username Field Change
2010-11-22 23:19 zesstra New Issue
2010-11-22 23:19 zesstra Relationship added parent of 0000718
2011-01-25 15:52 Gnomi Note Added: 0001961
2014-02-23 22:56 zesstra Relationship added related to 0000829
2014-02-23 23:02 zesstra Status new => assigned
2014-02-23 23:02 zesstra Assigned To => Gnomi
2014-02-23 23:03 zesstra Note Added: 0002234
2014-02-23 23:03 zesstra Status assigned => resolved
2014-02-23 23:03 zesstra Fixed in Version => 3.5.0
2014-02-23 23:03 zesstra Resolution open => fixed