On Tue, 19 May 2015, Brad Beckmann wrote:



On May 14, 2015, 1:56 p.m., Nilay Vaish wrote:
I think it is not just enabling local variables for action blocks.
My understanding is that this patch allows declaration of local
variables without initialization.  My question is would you not
know the initial value or some default value in each case.

You could make that argument independent of SLICC, yet many programming languages allow such local variable declarations. This feature simply allows SLICC to do the same.


I agree with you. But I think you can declare local variables even now, whether initialized or uninitialized. This change would prevent the warning from getting printed when the variable is not initialized. So, the patch description is misleading.

--
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to