Raised This Month: $ Target: $400
 0% 

Variable already declared?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-08-2014 , 12:49   Re: Variable already declared?
Reply With Quote #4

... Interesting.
PHP Code:
public func(param)
{
    if(
param
    {
        new var[
1][1]
    }
    else
    {
        new var[
1][1]
    } 

Won't compile (symbol already defined). If, however, the array is one dimensional, it works fine:

PHP Code:
public func(param)
{
    if(
param
    {
        new var[
1]
    }
    else
    {
        new var[
1]
    } 

This is definitely a compiler bug. I find it hard to believe that it wasn't discovered yet, though. Did you try compiling it with an earlier build?

Last edited by Backstabnoob; 08-08-2014 at 12:54.
Backstabnoob is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode