Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Questions and Comments (http://www.alice.org/community/forumdisplay.php?f=9)
-   -   Another question (http://www.alice.org/community/showthread.php?t=10652)

jrrTolkien 05-24-2014 09:32 AM

Another question
 
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

chickentree 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

kopi 05-25-2014 08:48 PM

i hold my ground


[B][I][URL="http://elek.vn"]den led tiet kiem dien [/URL][/I][/B]cua cong ty chung toi


All times are GMT -5. The time now is 01:38 PM.

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