Jump to content

[SOLVED] First "_" symbol in array names


photo

Recommended Posts

Something is wrong with parser.

 

 

void example(){
vec3 _p0,_p1;

// The difference between using "ret" and "_ret" names:

int ret[0];	
engine.world.getIntersection(_p0, _p1, ~0, ret);  // no problems

int _ret[0];
engine.world.getIntersection(_p0, _p1, ~0, _ret); // exception (see attachment)
}

post-83-097327000 1286879328_thumb.jpg

Link to comment

Yes, I know various methods of renaming variables, so it's not a big problem :) Nevertheless, it's a bug, because non-array variables work well even with first "_" in their names.

Link to comment
×
×
  • Create New...