wren icon indicating copy to clipboard operation
wren copied to clipboard

[RFC] System.version - retrieve the current Wren version string

Open joshgoebel opened this issue 4 years ago • 2 comments

Reference: #998, wren-lang/wren-cli#95 Re-opening this as an issue so it is not lost.

The original suggestion from @robloach:


System.version // => 4000

It returns WREN_VERSION_NUMBER. Was thinking of retrieving the string, or having version.major, version.minor, but I think keeping it dead simple like this is best.


I also think returning WREN_VERSION_STRING would be fine also.

joshgoebel avatar May 14 '21 23:05 joshgoebel

That original PR returned the Num 4000 :wink:

https://github.com/wren-lang/wren/blob/main/src/include/wren.h#L18-L20

RobLoach avatar May 14 '21 23:05 RobLoach

Updated. :)

joshgoebel avatar May 15 '21 00:05 joshgoebel