![]() |
Delphi-Version: XE7
Konstante: Array of Class
Ich stehe grade auf dem Schlauch:
Warum geht die dritte Konstante nicht? Was ist daran nicht konstant?
Delphi-Quellcode:
program Project27;
const affectedNumbers: TArray<Integer> = [42, 99, -12]; affectedInstances: TArray<TObject> = [nil]; affectedClasses: TArray<TClass> = [TInterfacedObject]; // E2026 Konstantenausdruck erwartet begin // end. |
AW: Konstante: Array of Class
Dasselbe hättest du auch bei
Delphi-Quellcode:
. Dort, wie bei
TArray<TObject>
Delphi-Quellcode:
, geht nur
TArray<TClass>
Delphi-Quellcode:
als Konstante.
nil
|
AW: Konstante: Array of Class
Oh, hoppla stimmt :oops:
Aber warum das nicht gehen soll verstehe ich noch nicht. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:01 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz