Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Benoît Minisini
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

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Benoît Minisini
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 abl

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
> I didn't mean to say something about Boolean[] or an Array but *any* > creatable object. > OK, so if some object works completely independently without any need to be accessed, then you could just write: New MyNoNeedToBeManagedObject And left it there to do it's job... well I'm not sure it's wo

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Tue, 28 Jan 2014, Jussi Lahtinen wrote: > Maybe it's my sleep deprivation, but I can't understand connection between > unreferenced array and this. How unreferenced array would help in this? By > definition, if you can't refer to it, how you can use it? > > Jussi > Yeah, sorry, the Boolean[]

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
Maybe it's my sleep deprivation, but I can't understand connection between unreferenced array and this. How unreferenced array would help in this? By definition, if you can't refer to it, how you can use it? Jussi On Mon, Jan 27, 2014 at 11:40 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jus

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > Well ok, but I don't think that should be allowed syntax (at least I don't > > see any usage for it). > > > > I do: the PathWatch class in gb.inotify or generally every object like this: > > --8<-[ MyObject

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > Well ok, but I don't think that should be allowed syntax (at least I don't > see any usage for it). > I do: the PathWatch class in gb.inotify or generally every object like this: --8<-[ MyObject.class ]-

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
Well ok, but I don't think that should be allowed syntax (at least I don't see any usage for it). Jussi On Mon, Jan 27, 2014 at 11:15 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > ?? > > That doesn't make any sense, what do you think it should do? > > > > > Public Su

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > ?? > That doesn't make any sense, what do you think it should do? > > > Public Sub Main() > > New Boolean[] > > End > > It should create a Boolean[] and free it afterwards because there is no reference to it. -- "There's an old saying: Don't change

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
?? That doesn't make any sense, what do you think it should do? Jussi On Mon, Jan 27, 2014 at 10:39 PM, Tobias Boege wrote: > 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 > >

[Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
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) object