Temporary files for `-run`

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Apr 30 11:20:51 PDT 2016


On 30 Apr 2016, at 18:43, Joakim via digitalmars-d-ldc wrote:
> On Saturday, 30 April 2016 at 16:59:30 UTC, Johan Engelen wrote:
>> But... linker errors will show the temporary filenames. I was 
>> thinking about creating a random temporary folder but then the 
>> problem is that I have to add logic to delete that folder after 
>> execution... Is it OK if linker errors will show funny filenames? 
>> (aren't linker errors supposed to be incomprehensible? ;-))
>
> If you prefix runTemp before the random string, it'll help.

You could also go for a random directory name inside the system temp 
path, where people pretty much expect "funny names".

  — David


More information about the digitalmars-d-ldc mailing list