Re: Is there any way to give a warning when a nested function use its parent function's local variable value.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/23/2014 08:00 AM, Mark Farnell wrote:
> I don't think you need a warning in this particular case, perhaps a
> better way would be for the compiler to enforce a rule that forbids
> access of function pointers of inner functions that referencing local
> variables of its parent function.

Why would anyone want to forbid this?

cs.stanford.edu/~blynn/files/lexic.pdf

Andrew.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux