Re: [Vala] [Genie] how to default to float



On Tue, 2010-01-05 at 06:56 -0500, Arc Riley wrote:
I've been hitting a problem where passing float to a function which takes a
float fails because Genie is reading it as a double.  IE:

    var body = new RigidBody(null, 1.0, null)
src/windows.gs:35.36-35.38: error: Argument 2: Cannot convert from `double'
to `float'



pls use f at end of value to indicate float (I believe this is same with
vala)

EG

var body = new RigidBody(null, 1.0f, null)








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]