D rawkz! -- custom writefln formats

Russel Winder russel at winder.org.uk
Fri Jan 18 03:02:05 PST 2013


On Thu, 2013-01-17 at 11:18 -0800, H. S. Teoh wrote:
[…]
> What would *really* be nice is if we extended the current format
> specifiers to be able to deal with named parameters and custom
> modifiers, for example:
[…]

Isn't there a way of handling this with closure capture. Python, Groovy,
etc. handle all this with dynamic lookup. Scala, etc. handle it with
value capture.

(I haven't worked this through properly, it is just a quick reaction to
reading the code. I may therefore have missed the point.)

-- 
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 winder.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/20130118/8553ca02/attachment.pgp>


More information about the Digitalmars-d mailing list