Vote UpVote

Delphi attributes cannot use `const x: array of string` as argument

The Wiert Corner – [WayBack] I want to annotate some of my enumerated types with human facing names. So I want to write: type[Names(‘Explicit time domain’, ‘Implicit time domain’,… – David Heffernan – Google+ This does not work: constructor Create(const Values: array of string); It seems to be in QC. The reason is not obvious until you realise (thanks Stefan for wording that) that attribute constructor arguments are limited to¬†anything that can be const. Open arrays nor dynamic arrays can be const (yes, nowadays you can have “consts” that are dynamic arrays ...
Favorite? Off-Topic? jpluimers @ 2018-04-12 13:04


Visits: 134
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)