www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2461] New: Duplicate typedef (with different initializer) in module has wrong value

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2461

           Summary: Duplicate typedef (with different initializer) in module
                    has wrong value
           Product: D
           Version: 2.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: rosscanning2007 gmail.com


The code below produces the output 
555
555

when it should be
555
666


import std.stdio;

void f1() {
   typedef int MyInt = 555;
   MyInt x;
   writefln(x);
}

void f2() {
   typedef int MyInt = 666;
   MyInt x;
   writefln(x);
}

void main() {
   f1();
   f2();
}


-- 
Nov 18 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2461


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |wrong-code




------- Comment #1 from smjg iname.com  2008-11-19 18:10 -------
Please remember to assign keywords to bug reports.  To everybody reading this:
Please look through issues you've reported and check for missing keywords.


-- 
Nov 19 2008
prev sibling parent reply Brad Roberts <braddr puremagic.com> writes:
Does anyone, particularly Walter, pay any attention?  I agree they're
useful categorizers, but I have doubts that they're even used by anyone.

 ------- Comment #1 from smjg iname.com  2008-11-19 18:10 -------
 Please remember to assign keywords to bug reports.  To everybody reading this:
 Please look through issues you've reported and check for missing keywords.

Later, Brad
Nov 19 2008
next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
"Brad Roberts" wrote
 Does anyone, particularly Walter, pay any attention?  I agree they're
 useful categorizers, but I have doubts that they're even used by anyone.

The problem with them (IMO) is that you have to type them in exactly as they are defined. Every time I add a keyword (and I do use them, not sure if it helps anything), I have to click on the keywords link to see how they are spelled and what they mean. It would be a MUCH better interface (and probably more used feature) if the keywords were a checkbox list instead. I understand that this is not your software, but bugzilla's, so probably no change will come from this. But at least it's an idea for explaining why it's a seldom used feature. My preference for interface would be a checkbox list, with tooltips explaining the keywords when you hover over them. -Steve
Nov 20 2008
prev sibling parent reply Brad Roberts <braddr puremagic.com> writes:
Steven Schveighoffer wrote:
 "Brad Roberts" wrote
 Does anyone, particularly Walter, pay any attention?  I agree they're
 useful categorizers, but I have doubts that they're even used by anyone.

The problem with them (IMO) is that you have to type them in exactly as they are defined. Every time I add a keyword (and I do use them, not sure if it helps anything), I have to click on the keywords link to see how they are spelled and what they mean. It would be a MUCH better interface (and probably more used feature) if the keywords were a checkbox list instead. I understand that this is not your software, but bugzilla's, so probably no change will come from this. But at least it's an idea for explaining why it's a seldom used feature. My preference for interface would be a checkbox list, with tooltips explaining the keywords when you hover over them. -Steve

Sorry, I want to distinguish 'enter' from 'use'. It's obvious that some people enter them. Have you ever searched for bugs with specific key words, or used it for any analysis of existing bugs in any way? Later, Brad
Nov 20 2008
parent "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Brad Roberts" <braddr puremagic.com> wrote in message 
news:mailman.25.1227201018.22690.digitalmars-d-bugs puremagic.com...
<snip>
 Sorry, I want to distinguish 'enter' from 'use'.  It's obvious that some
 people enter them.  Have you ever searched for bugs with specific key
 words, or used it for any analysis of existing bugs in any way?

Yes. Being able to tell how many bugs of which of these kinds are around is both interesting and potentially useful. Stewart. -- My e-mail address is valid but not my primary mailbox. Please keep replies on the 'group where everybody may benefit.
Nov 20 2008