[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-task-tracker] [task #12601] Octave/Matlab differences regarding
From: |
Philip Nienhuis |
Subject: |
[Octave-task-tracker] [task #12601] Octave/Matlab differences regarding Java |
Date: |
Sat, 19 Apr 2014 19:54:53 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1 |
Follow-up Comment #1, task #12601 (project octave):
As to:
/SUPPORT for method(obj) syntax.
Matlab supports either obj.method() or method(obj) without use of javaMethod
call./
The obj.method() variant has worked since at least OF Java package 1.2.x,
method(obj) to some extent. The OF io package is pervaded by these call types.
E.g., in <io>/inst/private/__UNO_oct2spsh__.m:
unotmp = javaObject ("com.sun.star.uno.Type",
"com.sun.star.sheet.XSpreadsheet");
sh = sheets.getByName (sh_names{1}).getObject.queryInterface (unotmp);
....
unotmp = javaObject ("com.sun.star.uno.Type",
"com.sun.star.container.XNamed");
sh.queryInterface (unotmp).setName (wsh);
where only wsh, sheets and sh_names are Octave types.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/task/?12601>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-task-tracker] [task #12601] Octave/Matlab differences regarding Java,
Philip Nienhuis <=