Re: [Gambas-user] Application_Read

2011-07-23 Thread Demosthenes Koptsis
On Sun, 2011-07-24 at 00:32 +0200, tobias wrote: > On 24.07.2011 00:11, Benoît Minisini wrote: > >>> I don't know what you are talking about. I was sending a fixed project > >>> for Demosthene. Please send your project so that I can take a look at > >>> it! > >>> > >>> Regards, > >> oh god, i didn'

Re: [Gambas-user] gb3: compiling on Debian Wheezy (testing)

2011-07-23 Thread Kevin Fishburne
On 07/23/2011 02:18 PM, Kevin Fishburne wrote: > Just caught something new: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
On 24.07.2011 00:11, Benoît Minisini wrote: >>> I don't know what you are talking about. I was sending a fixed project >>> for Demosthene. Please send your project so that I can take a look at >>> it! >>> >>> Regards, >> oh god, i didn't notice the attachment... it really works. ah, i see >> Lof()

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> > I don't know what you are talking about. I was sending a fixed project > > for Demosthene. Please send your project so that I can take a look at > > it! > > > > Regards, > > oh god, i didn't notice the attachment... it really works. ah, i see > Lof() returns 0 on stdin, of course... > but the

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread tobias
On 23.07.2011 20:29, nando wrote: > Ok, so the following line... > >DIM Q AS NEW myClass[5] > > would need... > >FOR i = 0 TO 4 > myClass[i] = NEW myClass >NEXT > > > to instantiate each myClass object. > > The _init would then execute creating the string objects > > Does this line

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
Ok, so the following line... DIM Q AS NEW myClass[5] would need... FOR i = 0 TO 4 myClass[i] = NEW myClass NEXT to instantiate each myClass object. The _init would then execute creating the string objects Does this line... myClass[5] = NULL do a deep unreference to the embedded

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
Does not the following line make the class "_init" execute with each new instance of the class? DIM Q AS NEW myClass[5]' constructor executes 5 times Then, with each new instance there is the NEW object array with HELLO 100 times When the reference to myClass is gone, as in:

Re: [Gambas-user] gb3: compiling on Debian Wheezy (testing)

2011-07-23 Thread Kevin Fishburne
On 07/23/2011 04:24 AM, Kevin Fishburne wrote: > Everythings seems to work up to the end when I receive this: > > Making install in gb.sdl > make[1]: Entering directory > `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl' > Making install in src > make[2]: Entering directory > `/home/kevinfishburne/

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
> btw, there are no stream objects for the 3 standard fds, just interfaces? ok, found them in the File object -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has b

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
> I don't know what you are talking about. I was sending a fixed project for > Demosthene. Please send your project so that I can take a look at it! > > Regards, > oh god, i didn't notice the attachment... it really works. ah, i see Lof() returns 0 on stdin, of course... but there is something i

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> On 23.07.2011 17:59, Benoît Minisini wrote: > > No, read tobias' answer. Here is a fixed project. > > > > Note that if you run your project from the IDE, what you type inside the > > debugger output window will be sent to the process, but you won't have > > the behaviour of a true terminal. > >

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
On 23.07.2011 17:59, Benoît Minisini wrote: > No, read tobias' answer. Here is a fixed project. > > Note that if you run your project from the IDE, what you type inside the > debugger output window will be sent to the process, but you won't have the > behaviour of a true terminal. > > To run your p

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> i am sure that there is a bug. > > Please see the project. > No, read tobias' answer. Here is a fixed project. Note that if you run your project from the IDE, what you type inside the debugger output window will be sent to the process, but you won't have the behaviour of a true terminal. T

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
On 23.07.2011 16:15, Demosthenes Koptsis wrote: > i am sure that there is a bug. > > Please see the project. why should it be a bug? it looks more like a design issue but that's just a thought... so, you use sBuf as a global variable this is the errors reason because in this case it actually is a

Re: [Gambas-user] Application_Read

2011-07-23 Thread Demosthenes Koptsis
i am sure that there is a bug. Please see the project. On Sat, 2011-07-23 at 09:38 +0200, tobias wrote: > hi, > > >> Public Sub Application_Read() > >> > >> Dim sBuf As String > >> > >> Read #Last, sBuf, Lof(Last) > >> > > here i get again error for Read #Last > > "Dynamic symbols canno

Re: [Gambas-user] Cloning instances of a class to make an exact copy

2011-07-23 Thread tobias
On 23.07.2011 15:28, Benoît Minisini wrote: >> Question: >> >> Assume I have an instance of class myclass dimed as 'myclass1' >> and I want to clone all the data to NEW myclass2 >> >> The syntax may be something like: >> >> myclass2 = NEW myclass 'create instance >> myclass2.clone(myclass1) 'clon

Re: [Gambas-user] Cloning instances of a class to make an exact copy

2011-07-23 Thread Benoît Minisini
> Question: > > Assume I have an instance of class myclass dimed as 'myclass1' > and I want to clone all the data to NEW myclass2 > > The syntax may be something like: > > myclass2 = NEW myclass 'create instance > myclass2.clone(myclass1) 'clone/copy > > I do realize that: > myclass2 = myclas

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread Benoît Minisini
> Question: > > If I have a class 'myClass' with the following: > > DIM k = NEW OBJECT[100] > > PUBLIC SUB _init() > >DIM i AS INTEGER > >FOR i = 1 TO 100 > k[i] = NEW STRING[] 'add a string array > k[i].add("HELLO")'add one element with

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
hi, >> Public Sub Application_Read() >> >> Dim sBuf As String >> >> Read #Last, sBuf, Lof(Last) >> > here i get again error for Read #Last > "Dynamic symbols cannot be used in static function" > > is this a bug? it works fine for me? --