|
|
|
Lazarus: пустой динамический массив + for
|
|||
|---|---|---|---|
|
#18+
Добрый день. Наткнулся на странную ситуацию в Lazarus: procedure TForm1.Button1Click(Sender: TObject); var Points: array of record X,Y: Cardinal; end; I: Cardinal; begin SetLength(Points, 0); Memo1.Lines.Add(Format('Length(Points) = %d', [Length(Points)])); for I := 0 to Length(Points) - 1 do begin Memo1.Lines.Add('We here, but Length(Points)=0 ??!!'); Break; end; end; Выдает в Memo1 такую фигню: Length(Points) = 0 We here, but Length(Points)=0 ??!! Подскажите, я что-то пропустил или это такой прикол? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.06.2012, 18:00 |
|
||
|
|

start [/forum/topic.php?fid=16&fpage=67&tid=1342222]: |
0ms |
get settings: |
9ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
58ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
2ms |
| others: | 201ms |
| total: | 345ms |

| 0 / 0 |
