Using map instead of iteration
Russel Winder
russel at russel.org.uk
Sun Mar 6 08:08:12 PST 2011
On Sun, 2011-03-06 at 16:25 +0100, spir wrote:
[ . . . ]
> Without trying to study the code's detainls: "( 0 .. numberOfThreads )" has
> very few chances to be accepted by the parser ;-)
> Note: there is no interval literal in D. Instead uses of i..j in slicing and
> foreach both are pure syntactic honey.
Perhaps this needs review. All modern language now have this as an
integral way of describing a sequence of values.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at russel.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110306/99ebc817/attachment.pgp>
More information about the Digitalmars-d
mailing list