writeln and write at CTFE
Andrey
saasecondbox at yandex.ru
Wed Jan 13 11:50:26 UTC 2021
On Wednesday, 13 January 2021 at 11:31:16 UTC, Bastiaan Veelo
wrote:
> On Wednesday, 13 January 2021 at 09:11:53 UTC, Guillaume Piolat
> wrote:
>> On Wednesday, 13 January 2021 at 08:35:09 UTC, Andrey wrote:
>>> Hello all,
>>> Tell me please how can I "writeln" and "write" in function
>>> that is used in CTFE?
>>> At the moment I get this:
>>>> import\std\stdio.d(4952,5): Error: variable impl cannot be
>>>> modified at compile time
>>>
>>> Or may be exist some other ways to do it?
>>
>> pragma(msg, <compile-time-expr>);
>
> This may however not do what you wish it to do:
> https://forum.dlang.org/post/mailman.4526.1499573493.31550.digitalmars-d-learn@puremagic.com
>
> — Bastiaan.
Function "ctfeWriteln" doens't exist.
pragma(msg, ...) is used only for CT values.
Today is 2021. Dlang still doesn't have ctfe write functions?
More information about the Digitalmars-d-learn
mailing list