digitalmars.D.learn - really strange function errors
- Trass3r (9/9) Jul 23 2010 Getting a bunch of strange errors, anybody got an inkling what the cause...
- div0 (6/15) Jul 23 2010 wtf? we can't diagnose errors w/o context.
- Trass3r (1/3) Jul 23 2010 yeah, was accidentally sent too soon ^^
- Trass3r (4/7) Jul 23 2010 Ok, this was caused by calling sprite.rotation; on a const Sprite while ...
- bearophile (4/5) Jul 23 2010 Can you write a minimal example? This can be good for bugzilla (I have a...
- Trass3r (1/3) Jul 24 2010 I added this: http://d.puremagic.com/issues/show_bug.cgi?id=4497
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 Sprite.rotation (float angle) is not callable using argument types () -> even though there is a rotation()!
Jul 23 2010
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) const Error: function Sprite.rotation (float angle) is not callable using argument types () -> even though there is a rotation()!wtf? we can't diagnose errors w/o context. Show the relative code. -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk
Jul 23 2010
wtf? we can't diagnose errors w/o context. Show the relative code.yeah, was accidentally sent too soon ^^
Jul 23 2010
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 errors. The error message is really inexpressive though.
Jul 23 2010
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
Jul 23 2010
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
Jul 24 2010