octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60058] Feature request: function javaversion(


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #60058] Feature request: function javaversion()
Date: Mon, 15 Feb 2021 12:15:03 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36

Follow-up Comment #4, bug #60058 (project octave):

Great idea. Look at it: 
octave:17> version('-java')
ans = Java 11.0.10+9-suse-1.1-x8664 with Oracle Corporation OpenJDK 64-Bit
Server VM mixed mode
octave:18> compare_versions ('Java 11.0.5', version('-java'),'<=')
ans = 0
octave:19> compare_versions ('Java 11.0.05', version('-java'),'<=')
ans = 1

This is buggy as hell. 
I think if there is no spec whats the form of the version.. well... 
no trust. 


I would like to suggest an improvement over compare_versions: 
two arguments only 
Result is -1, 0,1 if < == >. 
With that you can implement the operators yourself in an obvious and elegant
way. 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60058>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]