🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: a.a.mis.admin
Article #32

Re: Type identifiers use memory?

#32
From: Chuck Bonner
Date: Fri, 13 Jun 1997 00:00
40 lines
1994 bytes
Robert,

The variable type identifiers require no more memory than an explicit type
declaration.  i.e. "Dim strName$" is exactly the same as "Dim strName As
String" in terms of how the variable is stored.

However, according to  the <A
HREF="http://www.microsoft.com/kb/articles/q110/2/64.htm">LONG Microsoft
Consulting Services Naming Conventions for VB</A>, these type identifier
suffixes are not recommended.

I can confirm from long experience in many development teams that they are
a nuisance.  For instance, if you want to find all references to a variable
and you highlight the declaration, "strName$," the search will not find
places where the variable is referred to as "strName."  What is  the name
of this variable?  Does it have a "$" in it or not?  The answer is, yes, it
has a "$" in it or not.

Do yourself and your colleagues a favor.  Don't use them.

-- 
Chuck Bonner
Stone & Webster Engineering Corp.
Chuck.Bonner@stoneweb.com

Robert Standefer <see.my.sig@nospam.com> wrote in article
<01bc7761$4328ed60$0f66ad0a@l6024588>...
> Do variable type identifiers (such as $ for string, % for integer) use
more
> memory?
> 
> Thanks.
> -- 
> } // Robert
> * "The opinions expressed herein are solely the author's and are not
> necessarily the opinions of USAA"
> * f r a c t a l @ c o m l a n d . c o m *
> 
> 
Technical Details
Message-ID: <01bc7802$f03ba640$8510046f@vms2238>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bc7761$4328ed60$0f66ad0a@l6024588>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110e3b,e3e0b3477ba3f22a
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f9608,e3e0b3477ba3f22a
X-Google-Attributes: gidf9608,public
X-Google-Thread: ffc75,e3e0b3477ba3f22a
X-Google-Attributes: gidffc75,public
From: "Chuck Bonner" <chuck.bonner@stoneweb.com>
Subject: Re: Type identifiers use memory?
Date: 1997/06/13
Message-ID: <01bc7802$f03ba640$8510046f@vms2238>
X-Deja-AN: 248130105
References: <01bc7761$4328ed60$0f66ad0a@l6024588>
Organization: Stone & Webster
Newsgroups: a.a.mis.admin,comp.lang.basic.visual.misc,microsoft.public.vb.syntax