[Top][All Lists]

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

Re: Learning the Octave interpreter code to implement Java class dot-ref

From: Hossein Sajjadi
Subject: Re: Learning the Octave interpreter code to implement Java class dot-referencing
Date: Sun, 12 Jul 2020 01:40:30 +0430

On 7/11/20, Mike Miller <mtmiller@octave.org> wrote:
> Hi Hossein,
> On Sat, Jul 11, 2020 at 18:31:38 +0430, Hossein Sajjadi wrote:
>> Backed by developing Octave Coder here are my insights  when trying to
>> create an external language interface for python and before placing it
>> in my TODO queue (The same concepts here are applied to java):
> Are you aware of the Python language interface I've been developing for
> several years now? Care to help improve it instead of creating a new
> one?
>   https://wiki.octave.org/Pythonic
>   https://gitlab.com/mtmiller/octave-pythonic
> Thanks,
> --
> mike

Hi Mike!
Interesting! If I correctly understand, In Pythonic a class is defined
in Octave named 'py' and subsref is overloaded to enable dot ref
indexing. The result of indexing operation will be a dot separated
string  plus the argument list.The argument list is converted to
python objects and the proper python function  is searched and

One may follow the same approach to implement dot referencing for java
with the benefit that he has a working project at hand to follow. But
if they want to follow the method that I pointed out they need to do a
different work. But java.__ here will be treated as package
(namespace) and the idea can be extended so that one can subclass a
java class in Octave and send its instance objects to java.

Honestly my TODO for python is just restricted to an idea. Currently I
focused on Coder and some other things.


reply via email to

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