February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3952


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #10 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-05 13:54:53 PST ---
Is this resolved now?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3952



--- Comment #11 from bearophile_hugs@eml.cc 2013-02-05 14:57:11 PST ---
(In reply to comment #10)
> Is this resolved now?

- - - - - - - - - - - - - - - - -

This doesn't work:

__ctfeWriteln("hello");
void main() {}


It gives:

temp.d(1): Error: unexpected ( in declarator
temp.d(1): Error: basic type expected, not "hello"
temp.d(1): Error: found '"hello"' when expecting ')'
temp.d(1): Error: no identifier for declarator __ctfeWriteln(int)
temp.d(1): Error: semicolon expected following function declaration
temp.d(1): Error: Declaration expected, not ')'

- - - - - - - - - - - - - - - - -

While this gives no errors but prints nothing:

int foo() {
    __ctfeWriteln(1);
    __ctfeWriteln("hello");
    return 0;
}
enum x = foo();
void main() {}


- - - - - - - - - - - - - - - - -

I don't like the names __ctfeWriteln and __ctfeWrite, they are ugly. It's much better to call them ctWriteln and ctWrite. They are meant to be a clean and handy feature of the D language, not some temporary compiler-speciic hack.

- - - - - - - - - - - - - - - - -

I don't see the D docs about those two functions in the D site. They need to be documented.

- - - - - - - - - - - - - - - - -

So this is not resolved yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3952



--- Comment #12 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-05 15:04:49 PST ---
Ok I can see now the Druntime pull was merged by accident. We're waiting for https://github.com/D-Programming-Language/dmd/pull/692

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3952



--- Comment #13 from bearophile_hugs@eml.cc 2013-02-05 15:45:38 PST ---
(In reply to comment #12)
> Ok I can see now the Druntime pull was merged by accident. We're waiting for https://github.com/D-Programming-Language/dmd/pull/692

Right.


I don't know if this is supposed to work:

__ctfeWriteln("hello");
void main() {}


Regarding the bad __ctfeWriteln/__ctfeWrite names, I don't know what to do.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »