[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is 'symbol' and its uses?
From: |
Shigio YAMAGUCHI |
Subject: |
Re: What is 'symbol' and its uses? |
Date: |
Wed, 13 Feb 2013 19:28:28 +0900 |
Do you mean why variable definition is not considered as a definition?
Probably this is caused by going slow. :)
Shigio
On Wed, 13 Feb 2013 18:00:59 +0800
Leo Liu <address@hidden> wrote:
> On 2013-02-13 16:03 +0800, Shigio YAMAGUCHI wrote:
> > Would you please cooperate to leave useful information?
> > Thank you in advance.
> >
> > Shigio
>
> The question is why BLACK, BLUE etc. (declarations) are not recognised
> as definitions but other symbols.
>
> The relevant java snippet is as follows:
>
> ////////////////////////////////////////////////////////////
> /**
> * <i>Standard draw</i>. This class provides a basic capability for
> * creating drawings with your programs. It uses a simple graphics model that
> * allows you to create drawings consisting of points, lines, and curves
> * in a window on your computer and to save the drawings to a file.
> * <p>
> * For additional documentation, see <a
> href="http://introcs.cs.princeton.edu/15inout">Section 1.5</a> of
> * <i>Introduction to Programming in Java: An Interdisciplinary Approach</i>
> by Robert Sedgewick and Kevin Wayne.
> */
> public final class StdDraw implements ActionListener, MouseListener,
> MouseMotionListener, KeyListener {
>
> // pre-defined colors
> public static final Color BLACK = Color.BLACK;
> public static final Color BLUE = Color.BLUE;
> public static final Color CYAN = Color.CYAN;
> public static final Color DARK_GRAY = Color.DARK_GRAY;
> public static final Color GRAY = Color.GRAY;
> public static final Color GREEN = Color.GREEN;
> public static final Color LIGHT_GRAY = Color.LIGHT_GRAY;
> public static final Color MAGENTA = Color.MAGENTA;
> public static final Color ORANGE = Color.ORANGE;
> public static final Color PINK = Color.PINK;
> public static final Color RED = Color.RED;
> public static final Color WHITE = Color.WHITE;
> public static final Color YELLOW = Color.YELLOW;
>
> ......
> }
> ////////////////////////////////////////////////////////////
>
> --
> Sent from my Emacs
>
>
> _______________________________________________
> Help-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-global
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3