short programme from "Programming in D" by Ali Cehreli.

Nick B via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 15 02:25:12 PDT 2016


On Tuesday, 14 June 2016 at 16:09:00 UTC, Steven Schveighoffer 
wrote:
> On 6/14/16 11:44 AM, Ali Çehreli wrote:
>> On 06/14/2016 04:52 AM, Nick B wrote:
>>

>> Further, when the format string is a literal like the one used 
>> in the
>> program, the compiler can in theory determine at compile time 
>> that the
>> format string does not match the rest of the arguments:
>>
>>     readf (" %s, &die");
>>     // "No argument for %s"
>>
>> This is a desired feature but dmd does not have this yet. 
>> Since dmd
>> provides the front end to gdc and ldc, they don't have this 
>> feature either.

I will log a feature request with Walter.

Nick



More information about the Digitalmars-d-learn mailing list