in reply to Re: Declaring a Variable [for BEGINNERS]
in thread Declaring a Variable [for BEGINNERS]

If I can come to the defense of C, both languages permit you to declare locally scoped variables at the start of a block. Only in Perl can you declare variables mid-block, although I haven't tested that recently.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re^2: Declaring a Variable [for BEGINNERS]