Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Another question
Old
jrrTolkien
Senior Member
 
jrrTolkien's Avatar
 
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Default Another question - 05-24-2014, 09:32 AM

Um, this may be just part of the teacher's bias, but in my class, I'm supposed to answer a few questions, and one of them is "when should variables be named in all uppercase letters?" I looked through all of her course material, but I couldn't find her answer. Is there some rule in general programming about naming variables that I don't know about? It might just be that this is my teacher's opinion, but I can't find her answer.

-Jrr


Arwen: “I would rather share one lifetime with you than face all the Ages of this world alone.”

-April Signature
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 05-25-2014, 09:07 AM

It is common for global variables and constants, and the names of macros to be defined in all caps. This is a widely used convention but is not required in any language I can remember working with.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
kopi
Junior Member
 
Status: Offline
Posts: 2
Join Date: May 2014
Default 05-25-2014, 08:48 PM

i hold my ground


den led tiet kiem dien cua cong ty chung toi
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.