Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Benoît Minisini
> On 10/06/10 23:37, Jussi Lahtinen wrote: > > I'm used to do this kind of things like this: > > > > Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 > > ,Optional z As Float = -1) > > > > If x <> -1 Then v[0] = x > > If y <> -1 Then v[1] = y > > If z <> -1 Then v[2] = z > >

Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Werner
On 10/06/10 23:37, Jussi Lahtinen wrote: > I'm used to do this kind of things like this: > > Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 > ,Optional z As Float = -1) > If x <> -1 Then v[0] = x > If y <> -1 Then v[1] = y > If z <> -1 Then v[2] = z > End > > > Jussi > Tha

Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Jussi Lahtinen
I'm used to do this kind of things like this: Public Sub _new(Optional x As Float = -1, Optional y As Float = -1 ,Optional z As Float = -1) If x <> -1 Then v[0] = x If y <> -1 Then v[1] = y If z <> -1 Then v[2] = z End Jussi 2010/6/10 Benoît Minisini : >> On 10/06/10 15:38, Charlie Reinl wr

Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Benoît Minisini
> On 10/06/10 15:38, Charlie Reinl wrote: > > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > >> I'm trying to implement a simple class that creates a Float[3] array. I > >> would like to give the user of the class an optional opportunity to fill > >> the array with data when the class

Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Werner
On 10/06/10 15:38, Charlie Reinl wrote: > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > >> I'm trying to implement a simple class that creates a Float[3] array. I >> would like to give the user of the class an optional opportunity to fill >> the array with data when the class is i

Re: [Gambas-user] Optional and Param (Gambas 3)

2010-06-10 Thread Charlie Reinl
Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner: > I'm trying to implement a simple class that creates a Float[3] array. I > would like to give the user of the class an optional opportunity to fill > the array with data when the class is instantiated. > >

[Gambas-user] Optional and Param (Gambas 3)

2010-06-09 Thread Werner
I'm trying to implement a simple class that creates a Float[3] array. I would like to give the user of the class an optional opportunity to fill the array with data when the class is instantiated. ' Gambas class file ' Vector3f Class Public v As New Float[