Print Page | Close Window

Super long identifiers (Warning 4786)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=8427
Printed Date: 16 May 2024 at 4:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Super long identifiers (Warning 4786)
Posted By: Tomasz
Subject: Super long identifiers (Warning 4786)
Date Posted: 14 October 2007 at 7:19am
Hello,
 
Although I like descriptive names, I think that identifiers like "CXTPSyntaxEditLexVariantPtrArrayExAutomatT" used in SyntaxEdit templates are simply way to long.
There are two points against using them:
a) when used in templates they generate Warning 4786 when compiled in VC6 that can only be surpassed using #pragma in stdafx.h (because it bumps up in afxtempl.h):
g:\visualstudio6\vc98\mfc\include\afxtempl.h(63) : warning C4786: 'XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexObj_SpecCollT<XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_class>,XTPSyn
taxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_tag>,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_tag_separators>,XTPSyntaxE
ditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAna
lyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL>' : identifier was truncated to '255' characters in the debug information
b) such long names bump up DLL size significantly as each such name take space in DLL export table. Almost half of megabyte is wasted on such names.
 
 
How about shortening:
CXTPSyntaxEdit prefix
to
CXTPSE
 
for those helper classes?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net