changeset 1243:70b7f985fe9f

[Issue 582] New: Cannot slice mixed tuples Michael Arntzenius <daekharel@gmail.com> 2006-11-21 news:bug-582-3@http.d.puremagic.com/issues/
author thomask
date Sat, 25 Nov 2006 17:53:39 +0000
parents 11f43a5eef14
children 3432142b757e
files compile/t/tuple_05_A.d compile/t/tuple_05_B.d compile/t/tuple_05_C.d compile/t/tuple_05_D.d reporter.txt
diffstat 5 files changed, 71 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/tuple_05_A.d	Sat Nov 25 17:53:39 2006 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Michael Arntzenius <daekharel@gmail.com>
+// @date@	2006-11-21
+// @uri@	news:bug-582-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 582] New: Cannot slice mixed tuples
+
+module dstress.compile.t.tuple_05_A;
+
+template Tuple(T ...) {
+	const Tuple = T[1 .. 3].length;
+}
+
+static assert(Tuple!('a', 'b', 'c', 'd') == 2);
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/tuple_05_B.d	Sat Nov 25 17:53:39 2006 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Michael Arntzenius <daekharel@gmail.com>
+// @date@	2006-11-21
+// @uri@	news:bug-582-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 582] New: Cannot slice mixed tuples
+
+module dstress.compile.t.tuple_05_B;
+
+template Tuple(T ...) {
+	const Tuple = T[1 .. 3].length;
+}
+
+static assert(Tuple!('a', 'b', 'c', float) == 2);
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/tuple_05_C.d	Sat Nov 25 17:53:39 2006 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Michael Arntzenius <daekharel@gmail.com>
+// @date@	2006-11-21
+// @uri@	news:bug-582-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 582] New: Cannot slice mixed tuples
+
+module dstress.compile.t.tuple_05_C;
+
+template Tuple(T ...) {
+	const Tuple = T[1 .. 3].length;
+}
+
+static assert(Tuple!(float, 'a', 'b', 'c') == 2);
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/t/tuple_05_D.d	Sat Nov 25 17:53:39 2006 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Michael Arntzenius <daekharel@gmail.com>
+// @date@	2006-11-21
+// @uri@	news:bug-582-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 582] New: Cannot slice mixed tuples
+
+module dstress.compile.t.tuple_05_D;
+
+template Tuple(T ...) {
+	const Tuple = T[1 .. 3].length;
+}
+
+static assert(Tuple!(float, int, double, real) == 2);
+
--- a/reporter.txt	Sat Nov 25 17:53:33 2006 +0000
+++ b/reporter.txt	Sat Nov 25 17:53:39 2006 +0000
@@ -44,7 +44,6 @@
 David Friedman		<d3rdclsmail_a_@_t_earthlink_d_._t_net>, <dvdfrdmn@users.sf.net>
 David L. Davis		<SpottedTiger@yahoo.com>
 David Medlock		<amedlock@nospam.org>, <noone@nowhere.com>
-Deewiant		<deewiant.doesnotlike.spam@gmail.com>
 dennis luehring		<dl.soluz@gmx.net>
 Derick Eddington	<derick_eddington@nospam.yahoo.nospam.com>
 Derek Parnell		<ddparnell@bigpond.com>
@@ -81,6 +80,7 @@
 Kevin Bealer
 Kevin VR		<azra@pandora.be>
 kinghajj
+Kirk McDonald		<kirklin.mcdonald@gmail.com>
 Knud Sorensen		<knud@NetRunner.all-technology.com>
 Kris			<fu@bar.com>, <someidiot@earthlink.dot.dot.dot.net>
 larrycowan
@@ -91,7 +91,9 @@
 Manfred Nowak		<svv1999@hotmail.com>
 marko			<tm030127d@galeb.etf.bg.ac.yu>
 Markus Dangl		<sky@quit-clan.de>
+Matti Niemenmaa (Deewiant) <deewiant@gmail.com>
 Michael Butscher	<mbutscher@gmx.de>
+Michael Arntzenius	<daekharel@gmail.com>
 MicroWizard
 Miguel Ferreira Simões	<Kobold@netcabo.pt>
 Mike Parker		<aldacron71@yahoo.com>