Re: [Gambas-user] Explictly sized array parameters in method signatures?

2015-01-28 Thread Tobias Boege
On Wed, 28 Jan 2015, adamn...@gmail.com wrote: > Hmm, I've never tried this before. > > Suppose a function GetCurrent(DateRange as Date[]), now intuitively > DateRange is an array of 2 dates. No-one would be silly enough to pass an > array with more than two elements would they? My cynical nat

Re: [Gambas-user] Explictly sized array parameters in method signatures?

2015-01-27 Thread adamn...@gmail.com
On Wed, 28 Jan 2015 00:43:26 -0500 T Lee Davidson wrote: > This may be over-simplified, but couldn't you define a DateRange structure? > Or > would that not provide the constraints you need? > > > Lee > __ > > "Artificial Intelligence is no match for natural stupidity." > Aha! That

Re: [Gambas-user] Explictly sized array parameters in method signatures?

2015-01-27 Thread T Lee Davidson
This may be over-simplified, but couldn't you define a DateRange structure? Or would that not provide the constraints you need? Lee __ "Artificial Intelligence is no match for natural stupidity." On 01/27/2015 08:02 PM, adamn...@gmail.com wrote: > Hmm, I've never tried this before. > >

[Gambas-user] Explictly sized array parameters in method signatures?

2015-01-27 Thread adamn...@gmail.com
Hmm, I've never tried this before. Suppose a function GetCurrent(DateRange as Date[]), now intuitively DateRange is an array of 2 dates. No-one would be silly enough to pass an array with more than two elements would they? My cynical nature says yes they could/would. I could ignore the array