Laiev
Hey Listen!!
- Reaction score
- 188
why this don't make the jasshelper accuse the syntax error? Also the map still working :nuts:
No no, shadowing != typecast.And, to put it more simple, this is called variable shadowing.
Blizzard disabled it some patches ago, but vJASS 'allows' it again. (simulates it).
#include<iostream>
char i = 65;
void sub()
{
int i = 94;
std::cout<<i<<" "<<sizeof(i)<<"\n";
}
int main()
{
std::cout<<i<<" "<<sizeof(i)<<"\n";
sub();
std::cout<<i<<" "<<sizeof(i)<<"\n";
return 0;
}