really strange function errors

2010-07-23 Thread Trass3r
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

Re: really strange function errors

2010-07-23 Thread Trass3r
wtf? we can't diagnose errors w/o context. Show the relative code. yeah, was accidentally sent too soon ^^

Re: really strange function errors

2010-07-23 Thread div0
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

Re: really strange function errors

2010-07-23 Thread Trass3r
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

Re: really strange function errors

2010-07-23 Thread bearophile
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

Re: really strange function errors

2010-07-24 Thread Trass3r
Can you write a minimal example? This can be good for bugzilla (I have added there several bad error message errors). I added this: http://d.puremagic.com/issues/show_bug.cgi?id=4497