From e2049ff1a71d034a025b9b7820227b01d35adede Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Wed, 22 Nov 2017 16:36:39 +0700 Subject: [PATCH] Update for latest Nim --- docs/index.rst | 2 +- godot.nimble | 2 +- godot/internal/godotarrays.nim | 8 ++++---- godot/internal/godotpoolarrays.nim | 4 ++-- godot/nim/godotmacros.nim | 11 ++++++----- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index a1607f6..bffe100 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -55,7 +55,7 @@ about compiling Godot can be found in `Godot documentation Installing Nim ------------- -The library requires Nim version 0.17.2 or newer, which you can get here: +The library requires Nim version 0.18.0 or newer, which you can get here: https://nim-lang.org/install.html Make sure you also have ``nimble`` (Nim's package manager) installed. diff --git a/godot.nimble b/godot.nimble index 3e778fd..cac30be 100644 --- a/godot.nimble +++ b/godot.nimble @@ -1,4 +1,4 @@ -version = "0.6.7" +version = "0.6.8" author = "Xored Software, Inc." description = "Godot Engine bindings" license = "MIT" diff --git a/godot/internal/godotarrays.nim b/godot/internal/godotarrays.nim index 607474f..32bcefa 100644 --- a/godot/internal/godotarrays.nim +++ b/godot/internal/godotarrays.nim @@ -136,20 +136,20 @@ proc binarySearchCustom*(self: var GodotArray, val: ptr GodotVariant, getGDNativeAPI().arrayBSearchCustom(self, val, obj, funcName, before) iterator items*(self: GodotArray): GodotVariant = - for i in 0..