[Gambas-user] Noel

2014-12-08 Thread Jack

Hello,

Soon it's Christmas so for this occasion I made a little demo

http://www.gambasforge.org/code-134-noel.html

turn up the sound and Father Christmas will come

Jack

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Graphviz for Gambas

2014-12-08 Thread Fabien Bodard
Graphviz library unfortunately is under EPL licence whitch  is
incompatible with GLP :-/

2014-12-08 2:55 GMT+01:00 Christian e Ana Luiza Britto :
> Hi,
> I would like to know if there is a way to integrate Graphviz library
> directly to Gambas.
> Thanks a lot.
> Christian
> Brazil
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Graphviz for Gambas

2014-12-08 Thread Tobias Boege
On Mon, 08 Dec 2014, Fabien Bodard wrote:
> Graphviz library unfortunately is under EPL licence whitch  is
> incompatible with GLP :-/
> 
> 2014-12-08 2:55 GMT+01:00 Christian e Ana Luiza Britto :
> > Hi,
> > I would like to know if there is a way to integrate Graphviz library
> > directly to Gambas.
> > Thanks a lot.
> > Christian
> > Brazil
> >
> > --
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

There is a Graph class in gb.data and I wanted to write a small GraphViz
class which calls "dot" to produce a PNG out of a graph. Now that I hear
about this licensing problem, I need to verify: I can still call the dot
program from the GraphViz project from inside a Gambas process, right?

So, yes, Christian, there is at least thought about a GraphViz class. But
it will only be there to produce PNGs out of graphs using "dot". I don't
care ATM about what GraphViz can do else.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Accessor

2014-12-08 Thread Fabien Bodard
What about let the class ME accessor the possibility to access to the
class private global value.


Private toto as integer

Public sub _New (Toto as integer)

  me.toto = Toto

end



Actually i can't use the name Toto in the _New param because

Toto = Toto only work on the local variable.

-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Accessor

2014-12-08 Thread Fabien Bodard
I think i have used the term accessor in a bad way ... arf i've a so
bad english :-/

2014-12-08 15:27 GMT+01:00 Fabien Bodard :
> What about let the class ME accessor the possibility to access to the
> class private global value.
>
>
> Private toto as integer
>
> Public sub _New (Toto as integer)
>
>   me.toto = Toto
>
> end
>
>
>
> Actually i can't use the name Toto in the _New param because
>
> Toto = Toto only work on the local variable.
>
> --
> Fabien Bodard



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Something i do not understand

2014-12-08 Thread Fabien Bodard
  Dim grad As Float[][][]

grad = New Float[][width, height]
grad[x][y] = [0.2, 0.2]

give me a 'bad number of dimention error' .. why 

-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Something i do not understand

2014-12-08 Thread Tobias Boege
On Mon, 08 Dec 2014, Fabien Bodard wrote:
>   Dim grad As Float[][][]
> 
> grad = New Float[][width, height]
> grad[x][y] = [0.2, 0.2]
> 
> give me a 'bad number of dimention error' .. why 
> 

The syntax

  Float[][width, height]

does not exist in Gambas. Multi-dimensional arrays are only implemented
for native datatypes (Float, etc.), not for classes like Float[]. Even if
it was implemented, Float[][A, B] would still yield a 2-dimensional array
of Float[] objects whereas Float[][][] would be a 1-d array of Float[][]
objects. Those two things are different / incompatible.

If you want to use

  Dim grad As Float[][][]

you must do

  grad = New Float[][][](size1)  ' size1 so that x < size1
  grad[x] = New Float[][](size2) ' size2 so that y < size2
  grad[x][y] = [0.2, 0.2]

See attached script.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
#!/usr/bin/gbs3

Public Sub Main()
  Dim grad As Float[][][]
  Dim x, y As Integer

  x = 2
  y = 1

  ' Ensure that no "out of bounds" is raised
  grad = New Float[][][](x + 1)
  grad[x] = New Float[][](y + 1)
  grad[x][y] = [0.2, 0.2]
End
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Something i do not understand

2014-12-08 Thread Tobias Boege
On Mon, 08 Dec 2014, Tobias Boege wrote:
> On Mon, 08 Dec 2014, Fabien Bodard wrote:
> >   Dim grad As Float[][][]
> > 
> > grad = New Float[][width, height]
> > grad[x][y] = [0.2, 0.2]
> > 
> > give me a 'bad number of dimention error' .. why 
> > 
> 
> The syntax
> 
>   Float[][width, height]
> 
> does not exist in Gambas. Multi-dimensional arrays are only implemented
> for native datatypes (Float, etc.), not for classes like Float[].

Oops, scratch that. I made a mistake.

Still the error comes from the incompatible layout of your two arrays, i.e.
the one (Float[][][]) is 1-d and the other (Float[][A, B]) is 2-d.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Something i do not understand

2014-12-08 Thread Fabien Bodard
well in fact i've found my error myself :-)


i need a too dimentional array of float[]... so myvar as Float[][dim1,dim2]

2014-12-08 17:49 GMT+01:00 Tobias Boege :
> On Mon, 08 Dec 2014, Tobias Boege wrote:
>> On Mon, 08 Dec 2014, Fabien Bodard wrote:
>> >   Dim grad As Float[][][]
>> >
>> > grad = New Float[][width, height]
>> > grad[x][y] = [0.2, 0.2]
>> >
>> > give me a 'bad number of dimention error' .. why 
>> >
>>
>> The syntax
>>
>>   Float[][width, height]
>>
>> does not exist in Gambas. Multi-dimensional arrays are only implemented
>> for native datatypes (Float, etc.), not for classes like Float[].
>
> Oops, scratch that. I made a mistake.
>
> Still the error comes from the incompatible layout of your two arrays, i.e.
> the one (Float[][][]) is 1-d and the other (Float[][A, B]) is 2-d.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New features on the wiki

2014-12-08 Thread Benoît Minisini
Le 06/12/2014 14:25, Tobias Boege a écrit :
> On Thu, 13 Nov 2014, Tobias Boege wrote:
>>> No, the source tree may not beavailable on the wiki, only the *.info files.
>>>
>>> Why not adding an optional "*.help" file that would come with the *.info
>>> file?
>>>
>>> This file could have almost the same format as the *.info file, except
>>> that it includes only the help. Your script would have to generate that
>>> file - I don't know what it does exactly at the moment...
>>>
>>> The format is:
>>>
>>> #
>>> 
>>> '
>>> '
>>> '...
>>> 
>>> ...
>>> #
>>> ...
>>>
>>> Then either you keep your script, and you send me the *.help files so
>>> that I put them on the wiki server.
>>>
>>> Better would be having your script inside the source tree, and let it
>>> run automatically on the C/C++ sources with specific Makefile.am rules.
>>>
>>> That script can be written in Gambas. But then it will be run at "make
>>> install" stage, once the interpreter has been compiled.
>>>
>>> What do you think?
>>>
>>
>> Maybe I should rewrite it in Gambas. At this time it's 5 programs (in 4
>> different languages!) piping into one another. The first four preprocess
>> the C/C++ comments and the last is a really hackish C program which takes
>> these help lines and merges them to the right place in a given .info file.
>> When I wrote these, I was all about (development) speed. It may be cool to
>> have all that in one program (and one language only).
>>
>> The above format (and an extra file for it!) would be really good because
>> that's information the program can gather from the C/C++ source files alone.
>> No need to mess with the .info files then.
>>
>> Weekend...
>>
>
> Of course I meant this weekend, not the one 3 weeks ago...
>
> The scripts are in the c2help directory in the source tree root since #6712.
> Try them on gb.openssl:
>
>$ c2help/c2help.sh gb.openssl 2>/dev/null
>#Digest
>List
>' Return a list of all digests present in the local OpenSSL crypto library.
>_get
>' Return a virtual object representing a digest algorithm by giving its
>' name. Valid names can be looked up from Digest.List.
>IsSupported
>' Check whether the named digest algorithm is valid.
>#.Digest.Method
>Hash
>' Hash the given string using this digest algorithm.
>_call
>' A synonym for Hash.
>#Cipher
>List
>' Return a list of all ciphers present in the local OpenSSL crypto library.
>[...]
>
> One script is a gbs3 one, so all that needs to take place at "make install",
> as you said. Apart from that I need bash (with read and exit builtins), gawk,
> grep, sed and the coreutils (cat, tr and echo) -- to give an extensive list.
> Shouldn't be too exotic. But in case someone doesn't have egrep, sed or gawk,
> the help generation stage should be omitted since it's optional. I see no
> need to reduce the dependencies on my side.
>
> Regards,
> Tobi
>

The way you did is not really useful. You should have written a pure 
Gambas program with no dependencies, so that it can be run at "make 
install" stage automatically.

You have introduce many dependencies, which means a lot of problems if 
in the future Gambas is ported on a non-GNU system (Android, for example).

Moreover, /trunk is not the location for a compilation tool. You should 
have put it in /trunk/app/src for example.

Regards,

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Accessor

2014-12-08 Thread Benoît Minisini
Le 08/12/2014 15:28, Fabien Bodard a écrit :
> I think i have used the term accessor in a bad way ... arf i've a so
> bad english :-/
>
> 2014-12-08 15:27 GMT+01:00 Fabien Bodard :
>> What about let the class ME accessor the possibility to access to the
>> class private global value.
>>
>>
>> Private toto as integer
>>
>> Public sub _New (Toto as integer)
>>
>>me.toto = Toto
>>
>> end
>>
>>
>>
>> Actually i can't use the name Toto in the _New param because
>>
>> Toto = Toto only work on the local variable.
>>
>> --
>> Fabien Bodard
>
>
>

Don't use 'Toto' twice. This is the good solution, instead of letting 
weird syntaxes break the language.

Regards,

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New features on the wiki

2014-12-08 Thread Tobias Boege
On Mon, 08 Dec 2014, Beno?t Minisini wrote:
> Le 06/12/2014 14:25, Tobias Boege a ?crit :
> > On Thu, 13 Nov 2014, Tobias Boege wrote:
> >>> No, the source tree may not beavailable on the wiki, only the *.info 
> >>> files.
> >>>
> >>> Why not adding an optional "*.help" file that would come with the *.info
> >>> file?
> >>>
> >>> This file could have almost the same format as the *.info file, except
> >>> that it includes only the help. Your script would have to generate that
> >>> file - I don't know what it does exactly at the moment...
> >>>
> >>> The format is:
> >>>
> >>> #
> >>> 
> >>> '
> >>> '
> >>> '...
> >>> 
> >>> ...
> >>> #
> >>> ...
> >>>
> >>> Then either you keep your script, and you send me the *.help files so
> >>> that I put them on the wiki server.
> >>>
> >>> Better would be having your script inside the source tree, and let it
> >>> run automatically on the C/C++ sources with specific Makefile.am rules.
> >>>
> >>> That script can be written in Gambas. But then it will be run at "make
> >>> install" stage, once the interpreter has been compiled.
> >>>
> >>> What do you think?
> >>>
> >>
> >> Maybe I should rewrite it in Gambas. At this time it's 5 programs (in 4
> >> different languages!) piping into one another. The first four preprocess
> >> the C/C++ comments and the last is a really hackish C program which takes
> >> these help lines and merges them to the right place in a given .info file.
> >> When I wrote these, I was all about (development) speed. It may be cool to
> >> have all that in one program (and one language only).
> >>
> >> The above format (and an extra file for it!) would be really good because
> >> that's information the program can gather from the C/C++ source files 
> >> alone.
> >> No need to mess with the .info files then.
> >>
> >> Weekend...
> >>
> >
> > Of course I meant this weekend, not the one 3 weeks ago...
> >
> > The scripts are in the c2help directory in the source tree root since #6712.
> > Try them on gb.openssl:
> >
> >$ c2help/c2help.sh gb.openssl 2>/dev/null
> >#Digest
> >List
> >' Return a list of all digests present in the local OpenSSL crypto 
> > library.
> >_get
> >' Return a virtual object representing a digest algorithm by giving its
> >' name. Valid names can be looked up from Digest.List.
> >IsSupported
> >' Check whether the named digest algorithm is valid.
> >#.Digest.Method
> >Hash
> >' Hash the given string using this digest algorithm.
> >_call
> >' A synonym for Hash.
> >#Cipher
> >List
> >' Return a list of all ciphers present in the local OpenSSL crypto 
> > library.
> >[...]
> >
> > One script is a gbs3 one, so all that needs to take place at "make install",
> > as you said. Apart from that I need bash (with read and exit builtins), 
> > gawk,
> > grep, sed and the coreutils (cat, tr and echo) -- to give an extensive list.
> > Shouldn't be too exotic. But in case someone doesn't have egrep, sed or 
> > gawk,
> > the help generation stage should be omitted since it's optional. I see no
> > need to reduce the dependencies on my side.
> >
> > Regards,
> > Tobi
> >
> 
> The way you did is not really useful. You should have written a pure 
> Gambas program with no dependencies, so that it can be run at "make 
> install" stage automatically.
> 
> You have introduce many dependencies, which means a lot of problems if 
> in the future Gambas is ported on a non-GNU system (Android, for example).
> 

I didn't know; I committed the scripts I had lying around for a year or so,
just replaced the program that merged help comments into .info files with
the script that outputs .help files.

To reinvent the gawk- and sed-wheels should be the complicated part here but
it doesn't seem to be too hard...

> Moreover, /trunk is not the location for a compilation tool. You should 
> have put it in /trunk/app/src for example.
> 

I will do that on my next commit, when the thing will become a single
script.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New features on the wiki

2014-12-08 Thread Benoît Minisini
Le 08/12/2014 20:04, Tobias Boege a écrit :
> On Mon, 08 Dec 2014, Beno?t Minisini wrote:
>> Le 06/12/2014 14:25, Tobias Boege a ?crit :
>>> On Thu, 13 Nov 2014, Tobias Boege wrote:
> No, the source tree may not beavailable on the wiki, only the *.info 
> files.
>
> Why not adding an optional "*.help" file that would come with the *.info
> file?
>
> This file could have almost the same format as the *.info file, except
> that it includes only the help. Your script would have to generate that
> file - I don't know what it does exactly at the moment...
>
> The format is:
>
> #
> 
> '
> '
> '...
> 
> ...
> #
> ...
>
> Then either you keep your script, and you send me the *.help files so
> that I put them on the wiki server.
>
> Better would be having your script inside the source tree, and let it
> run automatically on the C/C++ sources with specific Makefile.am rules.
>
> That script can be written in Gambas. But then it will be run at "make
> install" stage, once the interpreter has been compiled.
>
> What do you think?
>

 Maybe I should rewrite it in Gambas. At this time it's 5 programs (in 4
 different languages!) piping into one another. The first four preprocess
 the C/C++ comments and the last is a really hackish C program which takes
 these help lines and merges them to the right place in a given .info file.
 When I wrote these, I was all about (development) speed. It may be cool to
 have all that in one program (and one language only).

 The above format (and an extra file for it!) would be really good because
 that's information the program can gather from the C/C++ source files 
 alone.
 No need to mess with the .info files then.

 Weekend...

>>>
>>> Of course I meant this weekend, not the one 3 weeks ago...
>>>
>>> The scripts are in the c2help directory in the source tree root since #6712.
>>> Try them on gb.openssl:
>>>
>>> $ c2help/c2help.sh gb.openssl 2>/dev/null
>>> #Digest
>>> List
>>> ' Return a list of all digests present in the local OpenSSL crypto 
>>> library.
>>> _get
>>> ' Return a virtual object representing a digest algorithm by giving its
>>> ' name. Valid names can be looked up from Digest.List.
>>> IsSupported
>>> ' Check whether the named digest algorithm is valid.
>>> #.Digest.Method
>>> Hash
>>> ' Hash the given string using this digest algorithm.
>>> _call
>>> ' A synonym for Hash.
>>> #Cipher
>>> List
>>> ' Return a list of all ciphers present in the local OpenSSL crypto 
>>> library.
>>> [...]
>>>
>>> One script is a gbs3 one, so all that needs to take place at "make install",
>>> as you said. Apart from that I need bash (with read and exit builtins), 
>>> gawk,
>>> grep, sed and the coreutils (cat, tr and echo) -- to give an extensive list.
>>> Shouldn't be too exotic. But in case someone doesn't have egrep, sed or 
>>> gawk,
>>> the help generation stage should be omitted since it's optional. I see no
>>> need to reduce the dependencies on my side.
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> The way you did is not really useful. You should have written a pure
>> Gambas program with no dependencies, so that it can be run at "make
>> install" stage automatically.
>>
>> You have introduce many dependencies, which means a lot of problems if
>> in the future Gambas is ported on a non-GNU system (Android, for example).
>>
>
> I didn't know; I committed the scripts I had lying around for a year or so,
> just replaced the program that merged help comments into .info files with
> the script that outputs .help files.
>
> To reinvent the gawk- and sed-wheels should be the complicated part here but
> it doesn't seem to be too hard...

Is it so hard to extract help comments? I have never thought about that, 
so I guess it should no be too hard to extract them with a Gambas program...

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Accessor

2014-12-08 Thread Fabien Bodard
2014-12-08 19:57 GMT+01:00 Benoît Minisini :
> Le 08/12/2014 15:28, Fabien Bodard a écrit :
>> I think i have used the term accessor in a bad way ... arf i've a so
>> bad english :-/
>>
>> 2014-12-08 15:27 GMT+01:00 Fabien Bodard :
>>> What about let the class ME accessor the possibility to access to the
>>> class private global value.
>>>
>>>
>>> Private toto as integer
>>>
>>> Public sub _New (Toto as integer)
>>>
>>>me.toto = Toto
>>>
>>> end
>>>
>>>
>>>
>>> Actually i can't use the name Toto in the _New param because
>>>
>>> Toto = Toto only work on the local variable.
>>>
>>> --
>>> Fabien Bodard
>>
>>
>>
>
> Don't use 'Toto' twice. This is the good solution, instead of letting
> weird syntaxes break the language.

:-P

>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bad Image format

2014-12-08 Thread Paul Horechuk
Kubuntu 14.04 LTS x86_64
Gambas 3.6.2
---
Dim PageImage as Image

...

Public Sub Preview()
PageImage = New Image As "PageImage"
Paint.Begin(PageImage)  ' Bad Format
   PageImage.Load("picture.jpg", 0, 0, 100, 100)
Paint.End
End

---

Could someone please explain?

-- 
Think Free ...
Use Open Source Software


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bad Image format

2014-12-08 Thread Jussi Lahtinen
The image must have some size, example:
PageImage = New Image(10, 10) As "PageImage"


Jussi

On Mon, Dec 8, 2014 at 11:34 PM, Paul Horechuk  wrote:

> Kubuntu 14.04 LTS x86_64
> Gambas 3.6.2
> ---
> Dim PageImage as Image
>
> ...
>
> Public Sub Preview()
> PageImage = New Image As "PageImage"
> Paint.Begin(PageImage)  ' Bad Format
>PageImage.Load("picture.jpg", 0, 0, 100, 100)
> Paint.End
> End
>
> ---
>
> Could someone please explain?
>
> --
> Think Free ...
> Use Open Source Software
>
>
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bad Image format

2014-12-08 Thread Paul Horechuk
Thank you. I wasn't aware of the dimension option. I will give that a try.

Sent from my ASUS Pad

Jussi Lahtinen  wrote:

>The image must have some size, example:
>PageImage = New Image(10, 10) As "PageImage"
>
>
>Jussi
>
>On Mon, Dec 8, 2014 at 11:34 PM, Paul Horechuk  wrote:
>
>> Kubuntu 14.04 LTS x86_64
>> Gambas 3.6.2
>> ---
>> Dim PageImage as Image
>>
>> ...
>>
>> Public Sub Preview()
>> PageImage = New Image As "PageImage"
>> Paint.Begin(PageImage)  ' Bad Format
>>PageImage.Load("picture.jpg", 0, 0, 100, 100)
>> Paint.End
>> End
>>
>> ---
>>
>> Could someone please explain?
>>
>> --
>> Think Free ...
>> Use Open Source Software
>>
>>
>>
>> --
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>--
>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>Get technology previously reserved for billion-dollar corporations, FREE
>http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>___
>Gambas-user mailing list
>Gambas-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user