declaration of variables?

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Thu Feb 20 20:54:27 EST 2003


laotseu wrote:
> Have you ever heard of any language that require you to declare 
> *litteral* constants ?-)

Pascal requires you to list all the numbers you're
going to be using as labels, which is a somewhat
strange requirement.

And there's an "interesting" language called Sorted!

    <http://p-nand-q.com/sorted.htm>

which has statements like (excerpt from the above
web page):

    This code does not use any numbers.
    This code uses the number fivemilliontwentytwothousandeightynine.
    This code uses the numbers Eins, Zwei, and Drei.

and then you refer to the declared constants by
their index in the list!

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list