Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Language    [ Add a report in this area ]  
Report #:  106305   Status: Open
Remove a limitation to class helpers: only one applying at a time.
Project:  Delphi Build #:  16.0.4504.48759
Version:    16.4 Submitted By:   David Tetard
Report Type:  Suggestion / Enhancement Request Date Reported:  6/10/2012 9:33:49 AM
Severity:    Commonly encountered problem Last Updated: 8/6/2012 10:37:29 AM
Platform:    All platforms Internal Tracking #:  
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Class helpers are great tools. However, they have one limitation that is annoying and that would need to be removed to make them even more effective:

You can define and associate multiple class helpers with a single class type. However, only zero or one class helper applies in any specific location in source code. The class helper defined in the nearest scope will apply. Class helper scope is determined in the normal Delphi fashion (i.e. right to left in the unit's uses clause).

I'd think that the following would only apply when there is a clash of names but I don't understand why it should be the case when no such conflict exists.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

wenjie zhou at 6/14/2012 5:41:38 PM -
Yes, i agree with enhancing class helper.

Server Response from: ETNACODE01