Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 2 of 2 total |
Duplicate identifier declaration error |
Thu, Nov 19 2015 8:23 AM | Permanent Link |
Michael Dreher | Hi,
what's wrong in this class declaration? type TftRequest2 = class private public constructor Create; override; constructor Create(const queryType : string; queryNo : integer=0); end; I get a compiler error for the 2'nd constructor: - // [Error] GlobalFunctions.wbs (255,17): Duplicate identifier declaration Create I've seen using more than one contructor in a class in WebCode::TObjectList: // constructor Create; override; // constructor Create(AOwnsObjects: Boolean); ...and a default value for the parameter in TStringBuilder:: // constructor Create(const Value: String=''); Michael Dreher |
Thu, Nov 19 2015 11:23 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Michael,
<< what's wrong in this class declaration? >> It's a bug in dealing with default parameters when comparing routine prototypes. Instead of noting that the non-default parameter count is the same and then proceeding to the actual parameter type checking, the compiler punts and stops there with an error. I'll have a fix in the next build. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, March 28, 2024 at 08:36 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |