[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] Recognise variable definitions as definitions
From: |
Shigio YAMAGUCHI |
Subject: |
Re: [feature request] Recognise variable definitions as definitions |
Date: |
Wed, 13 Feb 2013 22:12:28 +0900 |
It is already contained in the TODO list.
<http://www.gnu.org/software/global/plans.html>
On Wed, 13 Feb 2013 20:43:51 +0800
Leo Liu <address@hidden> wrote:
> Originated from this discussion
> http://thread.gmane.org/gmane.comp.gnu.global.general/324.
>
> BLACK, BLUE etc. (declarations) should be recognised as definitions and
> not 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;
>
> ......
> }
> ////////////////////////////////////////////////////////////
>
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-global
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3