Trass3r:
> The error message is really inexpressive though.
Can you write a minimal example? This can be good for bugzilla (I have added
there several bad error message errors).
Bye,
bearophile
Getting a bunch of strange errors, anybody got an inkling what the cause
might be?
Error: function Sprite.size () is not callable using argument types ()
Ok, this was caused by calling sprite.rotation; on a const Sprite while
rotation() wasn't marked as const.
The rest is probably similar
Getting a bunch of strange errors, anybody got an inkling what the cause
might be?
Error: function Sprite.size () is not callable using argument types () <-
wtf?
Error: function Sprite.getPixel (uint x, uint y) is not callable using
argument types (uint,uint) const
Error: function Spri
wtf? we can't diagnose errors w/o context.
Show the relative code.
yeah, was accidentally sent too soon ^^
On 23/07/2010 23:39, Trass3r wrote:
Getting a bunch of strange errors, anybody got an inkling what the cause
might be?
Error: function Sprite.size () is not callable using argument types ()
<- wtf?
Error: function Sprite.getPixel (uint x, uint y) is not callable using
argument types (uint,uint
On 7/23/2010 5:14 AM, Steven Schveighoffer wrote:
On Fri, 23 Jul 2010 05:56:18 -0400, Dave
wrote:
On 7/22/2010 7:40 AM, Steven Schveighoffer wrote:
On Wed, 21 Jul 2010 22:27:10 -0400, awishformore
wrote:
On 22/07/2010 03:36, Sean Kelly wrote:
Make the ctors "shared static this()" -- those
Dnia 22-07-2010 o 15:22:14 %u napisał(a):
How to parse a simple format with ranges? For example a query string
format:
string[string] params = parse("foo=1&bar=1%202&baz=1+2+3");
assert(params["foo"] == "1");
assert(params["bar"] == "1 2");
assert(params["baz"] == "1 2 3");
parse() should a
>
> string[int[2]] board;
>
> board[[0,0]] = "Rook";
> board[[0,1]] = "Knight";
>
> foreach( pos, val; board) {
> writefln( "%s: %s", pos, val);
> }
>
>
> Output:
>
> 2 9903680: Knight
> 2 9903696: Rook
>
Changing the declaration to
string[int[]] board;
makes it work (for
On Fri, 23 Jul 2010 05:56:18 -0400, Dave
wrote:
On 7/22/2010 7:40 AM, Steven Schveighoffer wrote:
On Wed, 21 Jul 2010 22:27:10 -0400, awishformore
wrote:
On 22/07/2010 03:36, Sean Kelly wrote:
Make the ctors "shared static this()" -- those are only constructed
once when the process start
On 7/22/2010 7:40 AM, Steven Schveighoffer wrote:
On Wed, 21 Jul 2010 22:27:10 -0400, awishformore
wrote:
On 22/07/2010 03:36, Sean Kelly wrote:
Make the ctors "shared static this()" -- those are only constructed
once when the process starts up. The non-shared static ctors are
thread-local.
10 matches
Mail list logo