Re: [Gambas-user] Two short questions

2012-03-04 Thread GMail
On Mon, 2012-03-05 at 12:16 +0800, Ian Roper wrote: > Could you use > Exec ["xdg-open", Application.path &/ "myfile.pdf"] > > or is the bad practice ? > > Note # xdg-open is on most Linux Distros and will open a nominated file > with the correct program if there is one installed for this purpose.

Re: [Gambas-user] Two short questions

2012-03-04 Thread Ian Roper
Could you use Exec ["xdg-open", Application.path &/ "myfile.pdf"] or is the bad practice ? Note # xdg-open is on most Linux Distros and will open a nominated file with the correct program if there is one installed for this purpose. Regards, Ian Roper ~ Perth - Western Australia. On Sat, 2012-

[Gambas-user] IDE feature request: viewing collection-like objects

2012-03-04 Thread Ian Haywood
Benoit, some time also we had a discussion about Collection semantics. In Gambas setting the member of a Collection to NULL is the same as deleting it. I am not trying to re-open this debate, I accept the decision and have written a class with the semantics Richard and I want: it can have NULL mem

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Benoît Minisini
Le 04/03/2012 10:16, Benoît Minisini a écrit : > Le 04/03/2012 02:23, Benoît Minisini a écrit : >> >> You are right, I didn't think about that. So the current design does not >> work, and I don't have another one. >> >> I will remove GOSUB if it cannot be implemented in a right way. :-/ >> >> Regar

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread WALKER RICHARD
Why not try: RETURN label: It looks like a function return value but "label:" can only be a label, yes On 04/03/2012, Benoît Minisini wrote: > Le 04/03/2012 17:35, Jussi Lahtinen a écrit : >> Maybe there should be "GoBack" instead of "Return". >> We already have "GoTo" and "GoSub", so I think i

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Benoît Minisini
Le 04/03/2012 17:35, Jussi Lahtinen a écrit : > Maybe there should be "GoBack" instead of "Return". > We already have "GoTo" and "GoSub", so I think it would be logical... > > Jussi > Yes, but RETURN is the historical syntax in Basic. And I don't think it's a problem if you cannot return from the

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Benoît Minisini
Le 04/03/2012 15:23, Emil Lenngren a écrit : > Nice, to me it looks like that design works ;) > > But I get a compile error: > error: 'TRANS_GOTO' has no member named 'gosub' > > I assume the "share" folder was not commited to svn... > When I add "bool gosub" to the gbc_trans_common.h, it works. >

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Jussi Lahtinen
Maybe there should be "GoBack" instead of "Return". We already have "GoTo" and "GoSub", so I think it would be logical... Jussi 2012/3/4 Benoît Minisini > Le 04/03/2012 02:23, Benoît Minisini a écrit : > > > > You are right, I didn't think about that. So the current design does not > > work,

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Emil Lenngren
I think they can be useful. They both speed up the code and let you have "functions" inside functions that have access to all the local variables. /Emil 2012/3/4 Ru Vuott > > > But I get a compile error: > > error: 'TRANS_GOTO' has no member named 'gosub' > > I confirm this problem. > > > A que

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Ru Vuott
> But I get a compile error: > error: 'TRANS_GOTO' has no member named 'gosub' I confirm this problem. A question: Is this GOSUB really so "incredibly" useful ? Regards Vuott -- Virtualization & Cloud Management Using

Re: [Gambas-user] Answer mail so that it's in the same thread

2012-03-04 Thread Jussi Lahtinen
Change your preferences, do not use digest. As you use gmail, you can create separated folder for gambas mailing list. Jussi On Sun, Mar 4, 2012 at 12:56, John Rose wrote: > An elementary question about this mailing list: > Benoit told me "please *answer* mails that are in the same thread. Do

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Emil Lenngren
Nice, to me it looks like that design works ;) But I get a compile error: error: 'TRANS_GOTO' has no member named 'gosub' I assume the "share" folder was not commited to svn... When I add "bool gosub" to the gbc_trans_common.h, it works. Now a little bug: Now the compiler thinks that all labels

[Gambas-user] IDE feature request: viewing collection-like objects

2012-03-04 Thread Ian Haywood
Benoit, some time also we had a discussion about Collection semantics. In Gambas setting the member of a Collection to NULL is the same as deleting it. I am not trying to re-open this debate, I accept the decision and have written a class with the semantics Richard and I want: it can have NULL mem

[Gambas-user] Answer mail so that it's in the same thread

2012-03-04 Thread John Rose
An elementary question about this mailing list: Benoit told me "please *answer* mails that are in the same thread. Do not create a new mail each time, because then it is very difficult to follow the talk.". I don't understand this. I don't receive an email message each time someone posts to the Gam

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Benoît Minisini
Le 04/03/2012 02:23, Benoît Minisini a écrit : > > You are right, I didn't think about that. So the current design does not > work, and I don't have another one. > > I will remove GOSUB if it cannot be implemented in a right way. :-/ > > Regards, > Here is the only solution I found in revision #45