Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:06:02+00:00 2026-05-30T04:06:02+00:00

Where I work we’re still using Delphi 2009. I happened to be looking at

  • 0

Where I work we’re still using Delphi 2009. I happened to be looking at the Forms unit in the VCL and stumbled upon:

[UIPermission(SecurityAction.LinkDemand, Window=UIPermissionWindow.AllWindows)]
function DisableTaskWindows(ActiveWindow: HWnd): TTaskWindowList;

This attribute is clearly the CLR class UIPermissionAttribute but unlike other references to the CLR this attribute is not wrapped in conditional compilation directives.

This surprised me because, AFAIK, in Delphi Win32 versions prior to 2010 brackets were only used for index notation in arrays and collection types, defining sets and assigning GUIDs to interfaces. This doesn’t appear to be the case.

I did a regex search and found dozens of examples throughout the RTL/VCL. Some were attributes on types and some on methods.

Are these simply ignored by the compiler or do they serve some purpose in Win32?


I also found syntax that looked like:

[!UnitName]
[!InterfaceName]

Which appears to have something to do with generating source files from a template in an IDE wizard but these weren’t in the RTL source folder. They were in the object repository folder.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:06:04+00:00Added an answer on May 30, 2026 at 4:06 am

    I had hoped that perhaps attributes were an undocumented feature similar to how class helpers were available for years before they were documented but that doesn’t appear to be the case.

    I tried a simple test and added attribute notation before a class definition. The compiler didn’t choke on it but it did issue a warning that custom attributes aren’t supported.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At work we are currently still using JUnit 3 to run our tests. We
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
I work with a client that is using purchase orders, and a custom order's
I work for a large Canadian retailer, and we're currently considering using CozyRoc for
I work on writing the excel Add-In using Excel Interop. I want to get
Work on vs2010 ,asp.net C#.Recently I work on smtp server.Using the smtp server I
I work with unit test in Rails.., Here is my code located in test\unit\sample_test.rb
At work I'm using Netbeans with Tomcat 6 without any problem. Tomcat isn't bundled
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.