NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
Identifier Names

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
openstepjunky



Joined: 14 Jul 2008
Posts: 24
Location: Germany

PostPosted: Sun May 15, 2011 9:04 am    Post subject: Identifier Names Reply with quote

I know this is a little bit off-topic, but I will post it nevertheless.
Here's a method of specifying identifiers.

Identifiers are made up of two parts: The prefix and the local name.
A Prefix can be of different forms. Its broken up into two parts:
The primary and secondary prefix.

Prefixes
----------
The primary prefix can be of three different forms:
o 'Pds' (first is capital, the rest lower-case)
o 'PDS' (all are captials)
o 'pds' (all are lower-case)

The secondary prefix (separator) can be:
o '_' Character
o '$' Character
o Empty

There are a total of 3*3=9 different forms of prefixes.

Local Names
---------------
The first word local name starts with a capital letter if the primary prefix starts with one, else is lower-case. All other letters are lower-case.
All other words can be of two different forms:
o System (they start with a capital letter)
o system (all are small letters)

Examples:
PDS$InitSystem
pds$initSystem
pds_initSystem
pdsinitSystem
PdsInitSystem

Digital VMS uses the '$'-Character as seperator between prefix and
local-name.
Windows uses the last method.

My prefered method is the first one, since it clearly separates the prefix
and the local-name and words within the local-name.

What is your prefered way and why ?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group