[Issue 3952] pragma(msg,...) has bugs + alternative idea
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 8 07:23:20 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3952
BCS <shro8822 at vandals.uidaho.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shro8822 at vandals.uidaho.edu
--- Comment #3 from BCS <shro8822 at vandals.uidaho.edu> 2010-08-08 07:23:18 PDT ---
What about this case:
auto Fn(T...)(T t)
{
foreach(Te; T) // compile time foreach
{
pragam(msg, "processing: " ~ Te.stringof)
... ctfe valid code
}
}
void main()
{
Fn!(int, int, float)(1,2,3.14); // will be evaluated at _run time_
}
//
expected CT output:
processing: int
processing: int
processing: float
//
expected runtime output: none
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list