[Gambas-user] Internal compiler error with New

Benoît Minisini gambas at ...1...
Tue Jan 28 02:09:27 CET 2014


Le 28/01/2014 02:01, Benoît Minisini a écrit :
> Le 27/01/2014 21:39, Tobias Boege a écrit :
>> Hi Benoit,
>>
>> attached is a project that generates an "internal compiler error" with
>> this
>> usage of the New keyword:
>>
>> Public Sub Main()
>>    New Boolean[]
>> End
>>
>> Actually, this is the project's whole code. What's wrong with it?
>> Could we
>> be able to do such a thing so that, e.g. PathWatch (gb.inotify) objects
>> don't need a Dim'd variable anymore? (I can think of classes where that's
>> equally useful: the ones which record themselves upon creation in some
>> static array or collection to be referenced later; they don't need to be
>> assigned to a variable when their constructor terminated.) If not, no big
>> deal.
>>
>> Regards,
>> Tobi
>>
>
> This is a compiler bug. That code should generate a syntax error instead.
>

Fixed in revision #6112.

Regards,

-- 
Benoît Minisini




More information about the User mailing list