<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#cccccc">
<font size="-1"><font face="Fixed">Hello,<br>
I'm new to this mailing list. I'm trying to learn D to
eventually use it in production code.<br>
I'm a little bit intimidated by the fact that the topics in the
d-learn list look rather advanced to a newbie like me. <br>
I have 3 fairly simple questions:<br>
<br>
1) Does D support something like the javascript 1.8
destructuring assigment (multiple assigment in python):<br>
<br>
[a, b] = [b, a];<br>
<br>
2) D doesn't seem to support the list comprehension syntax
available in python and javascript. Is this correct?<br>
<br>
[f(x) for x in list if condition]<br>
<br>
3) D's slice operator apparently doesn't allow the use of a
stride other than unity as is allowed with fortran and matlab.
Is there a way to implement this feature so that <br>
<br>
[1, 2, 3, 4, 5][0..$:2] would refer to [1, 3, 5], etc..., where
2 is the non unit stride. Or is the find function from
std.algorithm the only option to achieve the same behavior.<br>
<br>
I find the 3 features above extremely convenient in every day
coding.<br>
Thanks,<br>
-clk<br>
<br>
</font></font>
</body>
</html>