Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Tobias Boege
On Thu, 15 Aug 2013, Beno?t Minisini wrote: > Le 15/08/2013 16:32, Tobias Boege a ?crit : > >> This is implemented in revision #5797: > >> > >> Dim aStr As New String[2] > >> With aStr > >> .[0] = "a" > >> .[1] = "b" > >> Print .[0];; .[1] > >> End With > >> > >> Enjoy! > > > > Nice! Wo

Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Benoît Minisini
Le 15/08/2013 16:32, Tobias Boege a écrit : >> This is implemented in revision #5797: >> >> Dim aStr As New String[2] >> With aStr >> .[0] = "a" >> .[1] = "b" >> Print .[0];; .[1] >> End With >> >> Enjoy! > > Nice! Works also with Collection-like objects. The only thing I noticed was >

Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Tobias Boege
On Thu, 15 Aug 2013, Beno?t Minisini wrote: > Le 13/08/2013 01:31, Beno?t Minisini a ?crit : > > Le 11/08/2013 13:33, Tobias Boege a ?crit : > >> Hi Benoit, > >> > >> what bothers me from time to time is that With is *so* handy but can't be > >> used to access Array or Collection elements like: > >

Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Benoît Minisini
Le 13/08/2013 01:31, Benoît Minisini a écrit : > Le 11/08/2013 13:33, Tobias Boege a écrit : >> Hi Benoit, >> >> what bothers me from time to time is that With is *so* handy but can't be >> used to access Array or Collection elements like: >> >> With hCollection ' or hArray >>Print ["key"] ' o

Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-12 Thread Benoît Minisini
Le 11/08/2013 13:33, Tobias Boege a écrit : > Hi Benoit, > > what bothers me from time to time is that With is *so* handy but can't be > used to access Array or Collection elements like: > > With hCollection ' or hArray >Print ["key"] ' or Print [0] > End With > > I see that this would be a sy

[Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-11 Thread Tobias Boege
Hi Benoit, what bothers me from time to time is that With is *so* handy but can't be used to access Array or Collection elements like: With hCollection ' or hArray Print ["key"] ' or Print [0] End With I see that this would be a syntactical problem because ["key"] and [0] may equivalently wel