Naming Conventions & Style Guide?

spir denis.spir at gmail.com
Sun Jan 23 03:17:29 PST 2011


On 01/23/2011 06:05 AM, %u wrote:
>> Hmm.. I thought naming enums with capital letters was a standard thing in D
> land. I prefer them that way since they're constants, and since I almost always
> use a tag for an enum I never mistake it for anything else. YMMV.
>
> Huh, I guess now I see why they are the way they are. :)
> At first I wrapped Win32 constants, and so they were ALL_CAPS. Then I converted
> them to Windows/.NET-style, and they became PascalCased (both native and .NET use
> PascalCase)... then I read the style guide and started making them camelCased, and
> now I have code in each of these styles. Yeah, MMWV. :]

lol!

-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list