[Gambas-user] Internal compiler error with New

Tobias Boege taboege at ...626...
Mon Jan 27 21:39:33 CET 2014


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

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new-object-compiler-error-0.0.1.tar.gz
Type: application/octet-stream
Size: 4472 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140127/d6c96ef5/attachment.obj>


More information about the User mailing list