[fpc-devel] C style operator doesn't work with properties in 2.3.1

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jul 17 09:15:46 CEST 2008


On 17 Jul 2008, at 09:09, Daniƫl Mantione wrote:

> Even shorter:
>
> with itm do
>  with FDayList[WeekDayNum].Rows[Timeslot] do
>    AvailableSlots:=AvailableSlots+CountSlots;

Even shorter:

with itm, FDayList[WeekDayNum].Rows[Timeslot] do
    AvailableSlots:=AvailableSlots+CountSlots;

But nested or combined with-statements can be dangerous in case there  
are multiple fields with the same name in the different records/ 
classes/objects.


Jonas


More information about the fpc-devel mailing list