I have code like this in dcollections:
/**
* Removes the element that has the given key. Sets wasRemoved to
true if the
* element was present and was removed.
*
* Runs on average in O(1) time.
*/
HashMap remove(K key, out bool wasRemoved)
{
On Fri, 07 May 2010 07:56:23 -0400, Steven Schveighoffer wrote:
I have code like this in dcollections:
/**
* Removes the element that has the given key. Sets wasRemoved to
true if the
* element was present and was removed. *
* Runs on average in O(1) time.
On Fri, 07 May 2010 08:02:00 -0400, Graham Fawcett fawc...@uwindsor.ca
wrote:
On Fri, 07 May 2010 07:56:23 -0400, Steven Schveighoffer wrote:
I have code like this in dcollections:
/**
* Removes the element that has the given key. Sets wasRemoved to
true if the
* element
torhu Wrote:
On 06.05.2010 16:06, Nrgyzer wrote:
Thanks, but doesn't work :(
My files contain:
mydll.d:
module mydll;
export extern int i;
mydll2.d:
module mydll;
export int i = 7;
test.d:
import mydll;
import std.stdio;
void main() {
writefln(i);
Not feeding a float to ToString! seems to bring it back to life.
What is up with that anyway?
How do I output a float in compile time?
strtr wrote:
Killed it again :(
Are you using the latest DMD? If so, please try to create a test case,
as this bug has never been reported before. Thanks!
Steven Schveighoffer:
I have code like this in dcollections:
This is similar code that shows the same thing:
import std.stdio;
void main() {
bool b = true;
bool c;
if (c = !b)
writeln();
}
Since when did bool = bool not give a bool result?
I guess since Walter has
bearophile wrote:
Steven Schveighoffer:
I have code like this in dcollections:
This is similar code that shows the same thing:
import std.stdio;
void main() {
bool b = true;
bool c;
if (c = !b)
writeln();
}
Since when did bool = bool not give a bool
On Fri, 07 May 2010 14:42:15 -0400, Johan Granberg
lijat.me...@ovegmail.com wrote:
This is all true but if this is how the feature should be defined I think
the error message should improve. Something along the lines
of, Assignments not allowed as thruth values in conditional statments
seems