Re: [Cs-dev]
| Date | 2013-02-22 09:25 |
| From | peiman khosravi |
| Subject | Re: [Cs-dev] Array syntax |
| Attachments | None None |
| +1 On 22 February 2013 09:13, michael.gogins@gmail.com <michael.gogins@gmail.com> wrote: It is indeed confusing. |
| Date | 2013-02-22 09:30 |
| From | Richard Dobson |
| Subject | Re: [Cs-dev] Array syntax |
Just checking: in: kvar[] init 6 is 6 meant to signify the size of the array, or the value with which to initialise each element? Both are important/useful things to be able to do. Richard Dobson On 22/02/2013 09:13, michael.gogins@gmail.com wrote: > It is indeed confusing. > > T-Mobile. America’s First Nationwide 4G Network > > ----- Reply message ----- > From: "Andres Cabrera" |
| Date | 2013-02-22 09:51 |
| From | peiman khosravi |
| Subject | Re: [Cs-dev] Array syntax |
| Attachments | None None |
| That is exactly why the syntax is confusing. This is meant to be the size I think. P
On 22 February 2013 09:30, Richard Dobson <richarddobson@blueyonder.co.uk> wrote: Just checking: |
| Date | 2013-02-22 10:00 |
| From | peiman khosravi |
| Subject | Re: [Cs-dev] Array syntax |
| Attachments | None None |
| I think "alloc" or "defarray" would be better because "size" or "dim" could easily be confused with "return the size". Then "resize" could be used to resize already allocated arrays.
P On 22 February 2013 09:51, peiman khosravi <peimankhosravi@gmail.com> wrote: That is exactly why the syntax is confusing. This is meant to be the size I think. |