extend pragma(msg) with writing to file

a11e99z black80 at bk.ru
Thu Oct 6 12:24:32 UTC 2022


On Thursday, 6 October 2022 at 12:08:16 UTC, bauss wrote:
> On Thursday, 6 October 2022 at 09:55:34 UTC, a11e99z wrote:
>> for generating sources for other languages (interop)
>> or for viewing/checking auto generated code
>> ```d
>> version (CS) pragma("interop.file.cs", ...);
>> pragma("just.to.check.generated.code.d", ...);
>> ```
>
> That is never going to be implemented, has been suggested 
> before that compile-time file writing should be supported.

compiler generates obj,lib,exe,dll etc now.
why do u need CT-file-writing for compiler' pragma that writes 
text?

>
> overquoting. see bauss' comment above
>

to fuck with condoms or not to fuck at all?..
MS allows to save generated code from source generators to FS. 
probably the corp knows about risks and what it does.


More information about the Digitalmars-d mailing list