Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Benoît Minisini
Le 08/02/2012 01:25, Fabián Flores Vadell a écrit : > > Is the intention to provide a feature similar to inner classes of java? > Not at all. -- Benoît Minisini -- Keep Your Developer Skills Current with LearnDevNow! Th

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Fabián Flores Vadell
Hi Benoît. 2012/2/7 Benoît Minisini > > >>> > Gambas structures are really Gambas objects, except that they can be > embedded inside other objects or structures (you cannot embed a Gambas > object inside another one). > Beside that special behaviour (and two other ones in extern function > ma

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
LOL! My son in law is a rancher. A real cowboy (his tax return says so). And if you dropped the dog that sounds like something he'd say On Tue, Feb 7, 2012 at 1:02 PM, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > On 02/07/2012 08:10 AM, Randall Morgan wrote: > > http://gamba

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Kevin Fishburne
On 02/07/2012 08:10 AM, Randall Morgan wrote: > http://gambasdoc.org/help/lang/structdecl?en&v3 > > "A structure is exactly like a class that would have only public variables." > > > > On Tue, Feb 7, 2012 at 5:07 AM, Randall Morgan wrote: > >> Just restating the documentation >> >> >> As my d

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
Thanks for clearing that up Benoit! 2012/2/7 Benoît Minisini > Le 07/02/2012 14:50, GMail a écrit : > > On Tue, 2012-02-07 at 05:07 -0800, Randall Morgan wrote: > >> Just restating the documentation > >> > >> On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen > wrote: > >> > >>> On Tue, 2012-02-0

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Benoît Minisini
Le 07/02/2012 14:50, GMail a écrit : > On Tue, 2012-02-07 at 05:07 -0800, Randall Morgan wrote: >> Just restating the documentation >> >> On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen wrote: >> >>> On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: Actually, a Structure is a methodles

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Jussi Lahtinen
While structures and classes are different thing generally, I have understand that structures are implemented to Gambas internally as class. And to answer Kevin's question. Create class named Client_Animation, and paste this inside of it: Public Animating As Boolean Public OrientationDefault As

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
Well, it sounds like your issue is with the documentation rather than posters. I do recall someone a while back stating that in Gambas structures were implemented as method-less classes. In languages such as C/C++ etc.. structures are very different beasts compared to class. However, the document

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread GMail
On Tue, 2012-02-07 at 05:07 -0800, Randall Morgan wrote: > Just restating the documentation > > On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen wrote: > > > On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: > > > Actually, a Structure is a methodless class. > > zrr! > > >

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
http://gambasdoc.org/help/lang/structdecl?en&v3 "A structure is exactly like a class that would have only public variables." On Tue, Feb 7, 2012 at 5:07 AM, Randall Morgan wrote: > Just restating the documentation > > > On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen wrote: > >> On Tue, 2012-

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
Just restating the documentation On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen wrote: > On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: > > Actually, a Structure is a methodless class. > zrr! > > ... and you can inherit from, override and make static attributes from a

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Bruce Bruen
On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: > Actually, a Structure is a methodless class. zrr! ... and you can inherit from, override and make static attributes from a struct too? Please, lets keep things realistic here. --

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Randall Morgan
t; > > > -- Original Message --- > > From: Kevin Fishburne > > To: gambas-user@lists.sourceforge.net > > Sent: Mon, 06 Feb 2012 22:58:46 -0500 > > Subject: Re: [Gambas-user] gb3: converting structures to classes > > > >> On 02/06/201

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Kevin Fishburne
gt; > > -- Original Message --- > From: Kevin Fishburne > To: gambas-user@lists.sourceforge.net > Sent: Mon, 06 Feb 2012 22:58:46 -0500 > Subject: Re: [Gambas-user] gb3: converting structures to classes > >> On 02/06/2012 09:36 AM, nando wrote: >>>

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
-user] gb3: converting structures to classes > On 02/06/2012 09:36 AM, nando wrote: > > I am doing the same thing. > > Using class in place of structures. > > Then arrays or collections of the classes. > > Works great! > > > > What are the general steps to do

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread Kevin Fishburne
On 02/06/2012 09:36 AM, nando wrote: > I am doing the same thing. > Using class in place of structures. > Then arrays or collections of the classes. > Works great! > What are the general steps to do such a thing? How do you declare a class, define its properties, then create an array of the class

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
I am doing the same thing. Using class in place of structures. Then arrays or collections of the classes. Works great! -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Sun, 05 Feb 2012 02:39:43 -0500 Subject: [Gambas-user] gb3: converting

[Gambas-user] gb3: converting structures to classes

2012-02-04 Thread Kevin Fishburne
I tried to find the previous email suggesting this and couldn't, neither is there an equivalent wiki article describing class creation as there is with structure creation, so I'm asking here. I need to know how to convert structure declarations to class declarations, and if there are any obviou