[Vala] [Genie] how to default to float
- From: Arc Riley <arcriley gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] [Genie] how to default to float
- Date: Tue, 5 Jan 2010 06:56:14 -0500
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'
var body = new RigidBody(null, (float) 1.0, null)
(compiles and runs fine)
I've tried a few things from Vala, ie, [FloatingType (rank = 1)], but none
seem to work.
Is there a way to specify (for a whole source file) that float should be the
default rather than double?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]