www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 664] New: is(func T == return) ignores variadic arguments

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

           Summary: is(func T == return) ignores variadic arguments
           Product: D
           Version: 0.176
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


according to is(... == return) all the functions below have the same argument
types:

void foo(int);
void foo(int ...);
void foo(int, ...);


-- 
Dec 09 2006
next sibling parent Bruno Medeiros <brunodomedeiros+spam com.gmail> writes:
d-bugmail puremagic.com wrote:
 http://d.puremagic.com/issues/show_bug.cgi?id=664
 
            Summary: is(func T == return) ignores variadic arguments
            Product: D
            Version: 0.176
           Platform: PC
         OS/Version: Linux
             Status: NEW
           Severity: normal
           Priority: P2
          Component: DMD
         AssignedTo: bugzilla digitalmars.com
         ReportedBy: thomas-dloop kuehne.cn
 
 
 according to is(... == return) all the functions below have the same argument
 types:
 
 void foo(int);
 void foo(int ...);
 void foo(int, ...);
 
 

perhaps you mean '== function' and not '== return' ? -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Dec 09 2006
prev sibling next sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=664


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|is(func T == return) ignores|is(func T == function)
                   |variadic arguments          |ignores variadic arguments




------- Comment #1 from thomas-dloop kuehne.cn  2006-12-10 07:03 -------
"is(... == function)" instead of "is(... == return)"

Thanks to Bruno Medeiros for catching this.


-- 
Dec 10 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-12-10:
 http://d.puremagic.com/issues/show_bug.cgi?id=664

 ------- Comment #1 from thomas-dloop kuehne.cn  2006-12-10 07:03 -------
 "is(... == function)" instead of "is(... == return)"

 Thanks to Bruno Medeiros for catching this.

Added to DStress as http://dsrtess.kuehne.cn/compile/i/is_16_A.d http://dsrtess.kuehne.cn/compile/i/is_16_B.d http://dsrtess.kuehne.cn/compile/i/is_16_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFfDcsLK5blCcjpWoRAnN5AJ9MX1ROgSUULtT47D1xu8IcdwzOIACeKzG7 snwZR9B8j4jhAOIp5NTs6Fs= =yZ/9 -----END PGP SIGNATURE-----
Dec 10 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=664


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |bugzilla digitalmars.com


--- Comment #3 from Andrei Alexandrescu <andrei metalanguage.com> 2010-11-26
13:22:37 PST ---
Fixed URLs:

http://dstress.kuehne.cn/compile/i/is_16_A.d
http://dstress.kuehne.cn/compile/i/is_16_B.d
http://dstress.kuehne.cn/compile/i/is_16_C.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 26 2010