public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kartik Ohri <[email protected]>
To: Chapman Flack <[email protected]>
Cc: [email protected]
Subject: Re: the ScriptingMojo
Date: Wed, 26 Aug 2020 10:14:45 +0530
Message-ID: <CAASLQ4P47TNiEsuj3ga-vuYeCSBJZmHrPM-49E-X=0T5RTmhKw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAASLQ4Mva7dAXiS_c9OLhV4VzNHF=XNKJosuS5gtZTB6b4TW1Q@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<CAASLQ4PEgo5Nj0EVsOfGoB96dQFXfFYxrrB0rS1wdad7x_E5fA@mail.gmail.com>
	<CAASLQ4OowXOmnbbbT0Wh1ZkB4h=6JQfC61ojmN07EYnO0QCcow@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<CAASLQ4MBWQeFLdAPNcsgcpLyekU5X=ExQUuGgE49AUFdEYJr8g@mail.gmail.com>
	<[email protected]>
	<CAASLQ4P5oEx0DLoDLEOAkZSwffU2eS2+NKbevgYqpknHGucaTw@mail.gmail.com>
	<[email protected]>
	<CAASLQ4Nr3MPQuZziVU+89ULZ=BgQjaPPnCLsyPR3mhW-eWoOBw@mail.gmail.com>
	<[email protected]>
	<CAASLQ4PkP017rtyUswKO_TCiNmnica-nrQHBgggFw-U_9MstUg@mail.gmail.com>
	<[email protected]>

Hi!


> I have noticed a quirk (in nashorn anyway, haven't tried graal) where
> even the methods that are declared in the superclass can have trouble
> referring to each other as this.method() even though calling them from
> outside as bigobj.method() works fine. The dynamic nature of javascript
> allows a workaround: they can refer to each other as bigobj.method().
>
> I think that should be workable, as we will only be making one instance
> of one of these objects, and probably saving that in an outer var, maybe
> pgxs, and so if its JS-implemented methods internally refer to each other
> it can just look like methoda: function() { pgxs.methodb(); }.
>

I had done the similar experimentation as you did with similar results in
Nahorn and Graal.
Both did not work when I tried to use this. I was able to call the methods
externally
but not inside each other. But that outer variable work around gives the
desired
results and I will use it that way. Thanks.

Also, I had another question: is there any particular reason that compiling
and linking should
be two different commands. To me it appears to be another one of nar maven
quirks.
Compilers by default compile and link in a single step. It seems nar maven
overrides it due to
reason. Since, there is no configuration to suggest that this is desired I
am a bit confused.
Do we want to compile and link in different steps ?

Regards,
Kartik


view thread (78+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: the ScriptingMojo
  In-Reply-To: <CAASLQ4P47TNiEsuj3ga-vuYeCSBJZmHrPM-49E-X=0T5RTmhKw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox