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

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

[Octave-bug-tracker] [bug #48013] Java integration: conversion to double


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #48013] Java integration: conversion to double
Date: Wed, 25 May 2016 13:55:50 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

URL:
  <http://savannah.gnu.org/bugs/?48013>

                 Summary: Java integration: conversion to double
                 Project: GNU Octave
            Submitted by: ernstreissner
            Submitted on: Wed 25 May 2016 01:55:48 PM GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: ErnstReissner
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:

Seemingly, a java-object is converted to double 
iff a method double doubleValue() is defined, 
as is for Double.doubleValue() 
just by invoking this method. 

This is not appropriate. 
E.g. i provide a bunch of arithmetic types for octave 
and now i cannot even add two numbers of java type 
because they are converted implicitly to double 
because they all have a method doubleValue(). 

My suggestion is, to just convert java-double to octave-double 
and if the user wants conversion he/she can explicitly invoke method
doubleValue(). 

Maybe conversion of Double is still appropriate, but I think no. 

As you can see, this kind of treatment as suggested by me 
is vital for several applications 
and has no drawback. 
In addition, it is easy to realize. 

Thank you for considering. 
I would like to keep in touch. 

Greetings, 

Ernst 






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48013>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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