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

2012-02-07 Thread Randall Morgan
of Tune, they remain existing. -Fernando -- Original Message --- From: Kevin Fishburnekevinfishbu...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Mon, 06 Feb 2012 22:58:46 -0500 Subject: Re: [Gambas-user] gb3: converting structures to classes

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
Just restating the documentation On Tue, Feb 7, 2012 at 5:05 AM, Bruce Bruen bbr...@paddys-hill.net 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

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

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

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 bbr...@paddys-hill.net wrote: On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: Actually, a Structure is a methodless class.

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

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 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 Bruenbbr...@paddys-hill.net wrote: On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: Actually, a Structure is a

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 gam...@users.sourceforge.net 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 Bruenbbr...@paddys-hill.net

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?env3 A structure is exactly like a class that would have only public variables. On Tue, Feb 7, 2012 at 5:07 AM, Randall Morganrmorga...@gmail.com wrote: Just restating the documentation As my

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:

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 gam...@users.sourceforge.net 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

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! The

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

2012-02-06 Thread nando
: [Gambas-user] gb3: converting structures to classes 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

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
-0500 Subject: Re: [Gambas-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 such a thing? How do you

[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