Board index » delphi » Re: while we're at it (feature request)
Jeff Overcash (TeamB)
Delphi Developer |
Re: while we're at it (feature request)2003-12-15 11:52:51 PM delphi221 I personally would be against anything that encourages the use of WITH. Your solution can be implimented right now just by declaring a variable of the right type and doing an assignment and eliminating the with altogether Underling := Company[2].Staff.PersonNumber[23532]; Boss := Company[3].Management.PersonNumber[2342]; Boss.Headhunt(Underling); Underling.pissedOffBy(Boss); Underling.Rejects(Boss); Boss.pissedOffBy(Underling); If you add in the two declaration lines and subtract the extra lines forh the begin and end it is the same amount of lines of code. It adds no additional readability over the above example that can be done today. Also your suggestions reuses th AS keyword in such a way that has no relation to the current definition of AS further hurting readability later down the road. "Ben Hochstrasser [FF]" <bhoc@tiscali123^H^H^H.ch>writes: QuoteIt would be nice to have "with" aliases just like in SQL ("select name from |