[Issue 11811] Add "eval" to phobos

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11811

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P4

--


[Issue 11811] Add eval to phobos

2014-10-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11811

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 11811] Add eval to phobos

2014-10-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11811

--- Comment #3 from hst...@quickfur.ath.cx ---
Yeah, I think ctEval is a better name, otherwise people could misunderstand it
as runtime mixin, as it is used in other languages.

--


[Issue 11811] Add eval to phobos

2014-04-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11811

Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Maybe in std.functional? Anyway it sounds like a neat idea.

--


[Issue 11811] Add eval to phobos

2014-04-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11811

bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc

--- Comment #2 from bearophile_h...@eml.cc ---
(In reply to monarchdodra from comment #0)

 The idea is to simply *force* the CTFE evaluation of a variable, without
 declaring an enum.

It's a nice function that I have defined in my code, but please give it a more
specific name, because eval has usually a more general meaning (coming from
Lisp-like languages). So you can name it ctEval or something else.

--