justincormack / ljsyscall

LuaJIT Unix syscall FFI
http://www.myriabit.com/ljsyscall/
Other
441 stars 54 forks source link

add _VERSION #162

Closed fperrad closed 10 years ago

fperrad commented 10 years ago

It's could be nice to retrieve the version of ljsyscall like this:

print(require'syscall'._VERSION) --> v0.10

The fields _DESCRIPTION and _COPYRIGHT are also nice.

justincormack commented 10 years ago

What is the convention for version numbers that are not actually a release?

fperrad commented 10 years ago

Usually, I update this field when I prepare a new release. So, between two releases, it's the old one. But if the head already introduces some compatibility breakages, something likes the new with a suffix pre is useful.

justincormack commented 10 years ago

Yes, I guess I haven't broken anything yet...

justincormack commented 10 years ago

On the other hand the actual release did not have a version so I may leave like this for now...