Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Bruce
On Sun, 2012-06-17 at 18:06 +0200, Emil Lenngren wrote: > Instead of overriding, why not simply create a module that does things with > your array instead? > > Instead of > Public Function Decode(ivar as String[], pattern as Integer[]) as > Variant[] > > in some new array-class, > > you can simp

Re: [Gambas-user] Bug with JIT and external functions

2012-06-17 Thread Jussi Lahtinen
OK, that is fixed, and I cannot see any problems with compare method anymore. But with my big project, I got this with signal 6; gbx3: ExecutionEngine.cpp:165: void llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, void*): Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping alr

Re: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only

2012-06-17 Thread gambas
Updates: Status: Started Comment #6 on issue 253 by benoit.m...@gmail.com: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 (No comment was entered for this change.) -- Live Security Virtu

Re: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting

2012-06-17 Thread Benoît Minisini
Le 17/06/2012 15:49, Adrien Prokopowicz a écrit : > Le dimanche 17 juin 2012 15:38:22 Benoît Minisini a écrit : >> Le 12/06/2012 23:52, Adrien Prokopowicz a écrit : >>> Hi, >>> >>> I noticed that the Higlight.Analyze() method doesn't like when the Gambas >>> code >>> hasn't spaces between operator

Re: [Gambas-user] Bug with JIT and external functions

2012-06-17 Thread Emil Lenngren
It should be fixed in revision #4843! /Emil 2012/6/17 Jussi Lahtinen > Yes, it really works now. And I found a lot of errors by me. > > But for some reason JIT raises compare method when it shouldn't, > and when I tried to isolate the problem I got crash (signal 11). > This seems not to be rel

Re: [Gambas-user] Bug with JIT and external functions

2012-06-17 Thread Jussi Lahtinen
Yes, it really works now. And I found a lot of errors by me. But for some reason JIT raises compare method when it shouldn't, and when I tried to isolate the problem I got crash (signal 11). This seems not to be related to compare method, so just ignore name of the attached project. I will look i

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Emil Lenngren
Instead of overriding, why not simply create a module that does things with your array instead? Instead of Public Function Decode(ivar as String[], pattern as Integer[]) as Variant[] in some new array-class, you can simply have Public Function Decode(array As Variant[], ivar as String[], pattern

Re: [Gambas-user] Bug with JIT and external functions

2012-06-17 Thread Emil Lenngren
Yes, it works now :) 2012/6/17 Benoît Minisini > Le 17/06/2012 02:54, Jussi Lahtinen a écrit : > > Yeah, terminal gives other position... > > With my actual project, I got error message; wanted string, got > > blaablaaClass instead. > > And that error message comes from function (from other modu

Re: [Gambas-user] Access global variable from other .class

2012-06-17 Thread Benoît Minisini
Le 16/06/2012 03:44, Bruce a écrit : > On Sat, 2012-06-16 at 01:17 +0300, Jussi Lahtinen wrote: >> OK, got it. >> It's now "fixed" (actually xfce function was missing), tested and attached. >> >> Benoit, is this official part of xdg-utils..? Because I have that package >> installed, but not that sc

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Benoît Minisini
Le 17/06/2012 15:49, tobi a écrit : >>> >> >> Didn't know what? >> > > That '[', ']' are not allowed in project file names. So the only reason for > which I was able to > override Variant[] was because I didn't use the IDE? > At the moment, I think that it works. But I may change in the future.

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread tobi
On Sun, 17 Jun 2012, Benoît Minisini wrote: > Le 17/06/2012 15:40, tobi a écrit : > > On Sun, 17 Jun 2012, Benoît Minisini wrote: > >> Le 17/06/2012 08:22, Bruce a écrit : > >>> I would like to override the Variant[] class to extend it with a small > >>> set of special interest methods. > >>> > >>>

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Benoît Minisini
Le 17/06/2012 15:40, tobi a écrit : > On Sun, 17 Jun 2012, Benoît Minisini wrote: >> Le 17/06/2012 08:22, Bruce a écrit : >>> I would like to override the Variant[] class to extend it with a small >>> set of special interest methods. >>> >>> The gambas IDE complains when I try to call my class "Var

Re: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting

2012-06-17 Thread Adrien Prokopowicz
Le dimanche 17 juin 2012 15:38:22 Benoît Minisini a écrit : > Le 12/06/2012 23:52, Adrien Prokopowicz a écrit : > > Hi, > > > > I noticed that the Higlight.Analyze() method doesn't like when the Gambas > > code > > hasn't spaces between operators, commas and a few other ones. > > > > There is a go

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread tobi
On Sun, 17 Jun 2012, Benoît Minisini wrote: > Le 17/06/2012 08:22, Bruce a écrit : > > I would like to override the Variant[] class to extend it with a small > > set of special interest methods. > > > > The gambas IDE complains when I try to call my class "Variant[]". > > > > I cannot find anything

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Benoît Minisini
Le 17/06/2012 08:22, Bruce a écrit : > I would like to override the Variant[] class to extend it with a small > set of special interest methods. > > The gambas IDE complains when I try to call my class "Variant[]". > > I cannot find anything in the help that seems to preclude this, apart > from the

Re: [Gambas-user] Bug with JIT and external functions

2012-06-17 Thread Benoît Minisini
Le 17/06/2012 02:54, Jussi Lahtinen a écrit : > Yeah, terminal gives other position... > With my actual project, I got error message; wanted string, got > blaablaaClass instead. > And that error message comes from function (from other module without Fast) > which takes two objects are parameters. >

Re: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting

2012-06-17 Thread Benoît Minisini
Le 12/06/2012 23:52, Adrien Prokopowicz a écrit : > Hi, > > I noticed that the Higlight.Analyze() method doesn't like when the Gambas code > hasn't spaces between operators, commas and a few other ones. > > There is a good example of that problem here : > http://www.gambasforge.org/wiki/testHighlig

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread Bruce
On Sun, 2012-06-17 at 13:45 +0200, tobi wrote: > I have done overriding Variant[] successfully (extended it by a specific > Sort() method) but it > caused an interpreter complaint (I do not use the IDE) until (excluding) rev > #4715 so it would be > interesting what message you get and what revis

Re: [Gambas-user] How do I override an Array class?

2012-06-17 Thread tobi
On Sun, 17 Jun 2012, Bruce wrote: > I would like to override the Variant[] class to extend it with a small > set of special interest methods. > > The gambas IDE complains when I try to call my class "Variant[]". > > I cannot find anything in the help that seems to preclude this, apart > from the

[Gambas-user] Components and libraries and forms. Weird Sunday

2012-06-17 Thread Bruce
No bugs or questions this time. Just some observations. 1) Using a library that contains an exposed form. If a library exposes a form then when using that library in the IDE in another project, I see a "magical" method called $Load is exposed. I'm not sure what this method is for, nor can I fin