C is Brittle D is Plastic

user1234 user1234 at 12.de
Tue Mar 24 23:31:25 UTC 2026


On Tuesday, 24 March 2026 at 20:17:16 UTC, H. S. Teoh wrote:
> On Tue, Mar 24, 2026 at 08:50:26PM +0100, Timon Gehr via 
> Digitalmars-d wrote: [...]
>> ```d
>> import std.stdio;
>> 
>> string readAndLog(string filename){
>>     import std.file;
>>     auto text=readText(filename);
>>     write(filename," read successfully!\n");
>>     return text;
>> }
>> 
>> void main(){
>>     writeln(readAndLog("important_data.txt"));
>> }
>> ```
>> 
>> https://github.com/dlang/dmd/issues/19272
>> 
>> So what we have now is a compromise: It's both broken and not 
>> entirely straightforward.
>
> And the solution will add yet more complication to an already 
> complex import symbol resolution system. :-D
>
>
> T

git revert is so simple


More information about the Digitalmars-d mailing list