J
jacob navia
polas said:Morning all. I have a question - I am really not sure about the answer
and hope that it is not compiler specific... I am writing a language
translator to translate into C. There are some additional scoping
issues in the language which I would like to preserve in the C code.
Because of this I was wondering if there is a "good" way of creating a
scoped block in C - of course I could use a dummy conditional or
something like that, but I was wondering if there is a better way.
Cheers,
Nick
Anywhere in your code you can create a block scope.
....
{
local variables
statements
}
the local variables in that block will be only visible
in that bloack. You do not need a conditional to open
a block.