wren
wren copied to clipboard
[RFC] System.version - retrieve the current Wren version string
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.
That original PR returned the Num 4000 :wink:
https://github.com/wren-lang/wren/blob/main/src/include/wren.h#L18-L20
Updated. :)