== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 22:10:07 strtr wrote:
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it
On Saturday 17 July 2010 23:01:28 strtr wrote:
Cheated? I thought that you were trying to figure out why the code wasn't
d oing
what you expected it to be doing. So, of course I ran it.
Though, it's more likely that I have an x86 emulator in my brain which
can run
dmd than that I
On Saturday 17 July 2010 22:52:21 strtr wrote:
I think I'll start subject tagging my posts: [D1/D2]
std.stdio in D1 doesn't mention a write function and feeding the writef
function an illegal UTF string will result in a UTF exception.
With this information, what do you think the output
On Sunday 18 July 2010 00:38:38 Jonathan M Davis wrote:
On Saturday 17 July 2010 22:52:21 strtr wrote:
I think I'll start subject tagging my posts: [D1/D2]
std.stdio in D1 doesn't mention a write function and feeding the writef
function an illegal UTF string will result in a UTF exception.
On Sunday 18 July 2010 00:46:36 Jonathan M Davis wrote:
I'll file a bug report
- Jonathan M Davis
Wait. That's not the problem. Or at least, that's not the problem that needs to
be reported. The problem is that we're not compiling with -w. If you compile
with -w, then statements such as
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 04:13:03 bearophile wrote:
Jonathan M Davis:
You should pretty much never deal with each individual char or wchar in a
string or wstring. Do the conversion to dchar or dstring if you want to
access
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 00:46:36 Jonathan M Davis wrote:
I'll file a bug report
- Jonathan M Davis
Wait. That's not the problem. Or at least, that's not the problem that needs
to
be reported. The problem is that we're not
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 23:01:28 strtr wrote:
Cheated? I thought that you were trying to figure out why the code wasn't
d oing
what you expected it to be doing. So, of course I ran it.
Though, it's more likely that I
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 10:59:21 strtr wrote:
I totally agree that putting a cast there is probably not really a solution
(or legal).
Warnings for all non-dchar types.
Is there anybody using foreach(c;chars) || foreach(char
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 00:46:36 Jonathan M Davis wrote:
I'll file a bug report
- Jonathan M Davis
Wait. That's not the problem. Or at least, that's not the problem that needs
to
be reported. The problem is that we're not
On Sunday 18 July 2010 17:36:58 strtr wrote:
I don't agree with this bug report because of two reasons.
1. Warnings are supposed to be warnings, not errors. If you want to see
those warnings you'll use -w.
What you probably want is for the dmd to have a -!w flag instead (warnings
by
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 17:36:58 strtr wrote:
I don't agree with this bug report because of two reasons.
1. Warnings are supposed to be warnings, not errors. If you want to see
those warnings you'll use -w.
What you
On Sunday 18 July 2010 19:14:11 strtr wrote:
I'm not sure whether you missed my point or are simple thinking out loud
about unreachable code being a warning.
My point was that the unreachable warning was wrong as there is no
unreachable code.
Except that there _is_. You just can't see it.
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Sunday 18 July 2010 19:14:11 strtr wrote:
I'm not sure whether you missed my point or are simple thinking out loud
about unreachable code being a warning.
My point was that the unreachable warning was wrong as there is no
On Sunday 18 July 2010 19:47:37 strtr wrote:
Thanks for the explanation!
But what you are talking about is implementation, nowhere in the spec does
it say anything like this (or did I just miss it :).
I could find only this about scope(failure):
scope(failure) executes
What does this program print?
const char[] coins = `$�`;
void main()
{
writef(`I made `);
int stash = 0;
scope(exit) writefln(stash,`.`);
scope(failure) stash--;
foreach(coin;coins)
{
scope(exit) stash++;
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
Well, if I replace writef with write, I get
I made $€8.
If I leave in the writef though, I get this error:
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
As to why it's not working right, change th foreach loop to this:
foreach(dchar coin; coins)
{
...
}
Otherwise, instead of looping over each
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
As to why it's not working right, change th foreach loop to this:
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
Well, if I replace writef with write, I get
I made $€8.
If I leave in the
On Saturday 17 July 2010 21:48:30 strtr wrote:
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
As to why it's not
On Saturday 17 July 2010 22:10:07 strtr wrote:
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it is because I expected the stash to be 3 lower.
Well, if I replace
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 21:48:30 strtr wrote:
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
On Saturday 17 July 2010 18:59:18 strtr wrote:
That is [dollar sign, euro sign]
The reason I post it
24 matches
Mail list logo