[Gambas-user] DB Connection additional parameters

2014-09-20 Thread Christof Thalhofer
Hello, is there any chance to add additional parameters when establishing a Gambas connection to a DB? For instance Postgresql libpq allows the delivery of "application_name" in the connection string and a lot more parameters: http://www.postgresql.org/docs/9.0/static/libpq-connect.html Alles G

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread John Leake
I have drilled down into the guts of Gambas and rattled a few cages in the process but I would like to thank you all for your time, patience and tolerance towards a Gambas newbie. I like the IDE and what has been achieved since its inception and I think that it holds great potential for the future

Re: [Gambas-user] A good idea?

2014-09-20 Thread B Bruen
On Sun, 21 Sep 2014 00:57:55 +0200 Tobias Boege wrote: > On Sun, 21 Sep 2014, B Bruen wrote: > > As some will know, we use a lot of third-party (i.e. developed by us) > > components and libraries in our projects. > > Some of these are re-usable pop-up forms to provide common features across >

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Are the archives searchable in any real meaningful way ? > Or is that a silly question/obvious. I am getting tired so please > respond as though I am a moron. > In the mailing lists overview[0], you have a search box on the left or search links (I see tho

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > This is in great danger of getting off topic but holy shit. It has > certainly come a long way since then. > I think slight off topic is tolerated here...? > Who gave birth ? > Pretty sure Benoit did. > When did it come under source code control ? >

Re: [Gambas-user] A good idea?

2014-09-20 Thread Tobias Boege
On Sun, 21 Sep 2014, B Bruen wrote: > As some will know, we use a lot of third-party (i.e. developed by us) > components and libraries in our projects. > Some of these are re-usable pop-up forms to provide common features across > our gui apps. Things like "AboutMe" and "SysInfos" forms that we

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread John Leake
This is in great danger of getting off topic but holy shit. It has certainly come a long way since then. Who gave birth ? When did it come under source code control ? -- Slashdot TV. Video for Nerds. Stuff that Matters

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread John Leake
Are the archives searchable in any real meaningful way ? Or is that a silly question/obvious. I am getting tired so please respond as though I am a moron. On 20/09/14 23:29, Tobias Boege wrote: > On Sat, 20 Sep 2014, John Leake wrote: >> When did you arrive and what period do you refer to ? >> >

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sun, 21 Sep 2014, B Bruen wrote: > On Sat, 20 Sep 2014 23:17:03 +0100 > John Leake wrote: > > > When did you arrive and what period do you refer to ? > > > > On 20/09/14 22:34, Tobias Boege wrote: > > > On Sat, 20 Sep 2014, John Leake wrote: > > >> Hi All, > > >> Do any of you old-timers to g

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
The actual name 'Static Class Method or Static Class Variable' and the name 'Class Method or Class Variable' are exactly the same thing. They are directly synonymous with a static variable within a subroutine or function that retains its value between calls to that sub or func (ie it is not on the

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > When did you arrive and what period do you refer to ? > Legitimate questions. I joined the mailing list in 2012. There seems to be good traffic on this list since 2003 but this apparently was pre-Gambas1. There is no specific period I can refer you to. Wh

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread B Bruen
On Sat, 20 Sep 2014 23:17:03 +0100 John Leake wrote: > When did you arrive and what period do you refer to ? > > On 20/09/14 22:34, Tobias Boege wrote: > > On Sat, 20 Sep 2014, John Leake wrote: > >> Hi All, > >> Do any of you old-timers to gambas recall any questions/interest in > >> using the

[Gambas-user] A good idea?

2014-09-20 Thread B Bruen
As some will know, we use a lot of third-party (i.e. developed by us) components and libraries in our projects. Some of these are re-usable pop-up forms to provide common features across our gui apps. Things like "AboutMe" and "SysInfos" forms that we need to place in all our client applicatio

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread John Leake
When did you arrive and what period do you refer to ? On 20/09/14 22:34, Tobias Boege wrote: > On Sat, 20 Sep 2014, John Leake wrote: >> Hi All, >> Do any of you old-timers to gambas recall any questions/interest in >> using the IDE to generate source for other languages ? >> > > I do not but I h

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
Another thing just popped into mind: Consider an inheritance chain where at some level a class only defines static features (but inherits dynamic features from ancestral classes). If "only static feautures" presumed "non-instantiable class" then this would break subsequent inheritance. regard

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, Tobias Boege wrote: > On Sat, 20 Sep 2014, John Leake wrote: > > Hi All, > > Do any of you old-timers to gambas recall any questions/interest in > > using the IDE to generate source for other languages ? > > > > I do not but I have seen in the archives that *many* people wher

Re: [Gambas-user] Alternate language generation.

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Hi All, > Do any of you old-timers to gambas recall any questions/interest in > using the IDE to generate source for other languages ? > I do not but I have seen in the archives that *many* people where around Gambas before I arrived which aren't here anym

[Gambas-user] Alternate language generation.

2014-09-20 Thread John Leake
Hi All, Do any of you old-timers to gambas recall any questions/interest in using the IDE to generate source for other languages ? -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gamp

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi All, It is clear that many people have a huge investment in the status-qua. Just update the docs and say what can and cannot be compared (like the address of the object in this case). Then at least users are well informed before they code and rely on what they discover through experimentation.

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi, Sorry if I have mislead you wrt singletons. I am doing some experiments with singletons not using modules as singletons. I have a problem with consistency. The docs say one thing whereas in reality something different is happening. A static class/module either should or should not be creata

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
On Sat, 20 Sep 2014 20:24:46 +0200 Benoît Minisini wrote: > Le 20/09/2014 11:55, John Leake a écrit : > > Thanks Tobi, > >>> So could someone tell me if a class without any dynamic variable ie a > >>> static class, can or cannot be created ? > >>> > >> > >> Or you can try it out. > >> > >> What I

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread John Leake
It is difficult to have a wider discussion on this forum without being accused of being off topic or having to elucidate to the n'th degree why I would want to take a particular view or stance. So I have raised one or two pertinent subjects to assist my plans which have not received any response.

Re: [Gambas-user] Make installation package fails on Manjaro

2014-09-20 Thread Jørn Erik Mørne
Den 20. sep. 2014 20:26, skrev Benoît Minisini: > Le 20/09/2014 15:29, Jørn Erik Mørne a écrit : >> Hi! It is getting somewhere, but not quite there yet, it seems. I can >> now make a package, but when I try to install it (no matter which one) I >> get some error messages about the package file: >

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Tobias Boege
On Sun, 21 Sep 2014, B Bruen wrote: > On Sat, 20 Sep 2014 10:55:06 +0100 > John Leake wrote: > > > Thanks Tobi, > > >> So could someone tell me if a class without any dynamic variable ie a > > >> static class, can or cannot be created ? > > >> > > > > > > Or you can try it out. > > > > > > What

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
On Sat, 20 Sep 2014 10:55:06 +0100 John Leake wrote: > Thanks Tobi, > >> So could someone tell me if a class without any dynamic variable ie a > >> static class, can or cannot be created ? > >> > > > > Or you can try it out. > > > > What I did was creating a module and making objects from it wi

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread Benoît Minisini
Le 20/09/2014 19:11, John Leake a écrit : > Anyone know when the parser and compiler were last generated ? > The compiler was written by hand. For performance reasons if you want to know why. Regards, -- Benoît Minisini -

Re: [Gambas-user] Make installation package fails on Manjaro

2014-09-20 Thread Benoît Minisini
Le 20/09/2014 15:29, Jørn Erik Mørne a écrit : > Hi! It is getting somewhere, but not quite there yet, it seems. I can > now make a package, but when I try to install it (no matter which one) I > get some error messages about the package file: > 1. Missing meta data > 2. Invalid or corrupt package

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Benoît Minisini
Le 20/09/2014 11:55, John Leake a écrit : > Thanks Tobi, >>> So could someone tell me if a class without any dynamic variable ie a >>> static class, can or cannot be created ? >>> >> >> Or you can try it out. >> >> What I did was creating a module and making objects from it with New -- it >> works,

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Anyone know when the parser and compiler were last generated ? > What makes you so sure that the sources are generated? I don't know the compiler at all (!) but these sources look hand-written, everywhere. When I said "to produce [ bison/flex sources ] in

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread John Leake
Anyone know when the parser and compiler were last generated ? -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk ___

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread John Leake
It the original files that generated the compiler are not available it is too risky to reverse engineer them. On 20/09/14 14:29, Tobias Boege wrote: > On Sat, 20 Sep 2014, John Leake wrote: >> Hi All, >> Could anyone point me to the languages definitive specification as used >> by yacc and lex ? >

Re: [Gambas-user] Gambas language specification

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Hi All, > Could anyone point me to the languages definitive specification as used > by yacc and lex ? > I think nobody can. But the more I think about it, it should be possible to produce those files in less than a week... Regards, Tobi -- "There's an

Re: [Gambas-user] Make installation package fails on Manjaro

2014-09-20 Thread Jørn Erik Mørne
Den 18. sep. 2014 17:16, skrev Benoît Minisini: > Le 17/09/2014 10:12, Jørn Erik Mørne a écrit : >> Den 17. sep. 2014 03:41, skrev Benoît Minisini: >>> Le 16/09/2014 17:19, Jørn Erik Mørne a écrit : It really doesn't matter what project you use, as all of them fail the same way. I h

[Gambas-user] Gambas language specification

2014-09-20 Thread John Leake
Hi All, Could anyone point me to the languages definitive specification as used by yacc and lex ? -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread John Leake
Or more concicely datediff(date(year(now),month(now),1),date(year(now),month(now)+1,1),gb.day) -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.cl

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread John Leake
What about datediff(date(year(now),month(now),1,0,0,0,0),date(year(now),month(now)+1,1,0,0,0,0),gb.day) -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/414

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread Jack
Le 20/09/2014 12:35, Jack a écrit : > Le 20/09/2014 12:24, abbat81 a écrit : >> Hi, >> >> How can I get count of days in current month.year? >> >> >> In terminal I use: >> "cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1" >> >> But it doesn't work in Shell "" To *** >> > > Salut, > > > for

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Thanks Tobi, >> So could someone tell me if a class without any dynamic variable ie a >> static class, can or cannot be created ? >> > > Or you can try it out. > > What I did was creating a module and making objects from it with New -- it > works, but those objects are even more limited than I ha

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread Jack
Le 20/09/2014 12:24, abbat81 a écrit : > Hi, > > How can I get count of days in current month.year? > > > In terminal I use: > "cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1" > > But it doesn't work in Shell "" To *** > Salut, for day : CInt(Now) - CInt(Date(Year(Now), 1, 1)) + 1 for w

[Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread abbat81
Hi, How can I get count of days in current month.year? In terminal I use: "cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1" But it doesn't work in Shell "" To *** Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-Count-Current-month-Days-tp48371

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Hi All, > Could someone please clarify the characteristics of a static class. > > My understanding of Static Classes from other languages is: > > They cannot be created or more precisely no more than one instance of > the class can exist. This means that i

[Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi All, Could someone please clarify the characteristics of a static class. My understanding of Static Classes from other languages is: They cannot be created or more precisely no more than one instance of the class can exist. This means that if a process alters the state of the class then that c

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-20 Thread John Leake
On 20/09/14 01:31, Willy Raets wrote: > On za, 2014-09-20 at 00:19 +0100, John Leake wrote: >> Thank you. Should the documentation in the wiki also be updated to >> reflect this new behaviour ? > > I don't think so as the fix should make Gambas confirm the > documentation :) > It only fixes your