public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>, kawa@sourceware.org
Subject: Re: Environment initialization on Android
Date: Mon, 31 Oct 2022 09:25:59 -0700	[thread overview]
Message-ID: <f8f88c98-a63d-3fce-5f29-65893ce89bae@bothner.com> (raw)
In-Reply-To: <CAMFYt2ZMnPFJwj5SNsPQAYJgFO6x0Kizp_pwVCFw59C99AxaDA@mail.gmail.com>



On 10/31/22 03:51, Panicz Maciej Godek via Kawa wrote:
> when I make a "global definition" (in the module containing the definition
> of Android's activity), then the object bound to a given name is a null -
> if it's a 'compound object' (like StringBuilder or parameter object, or an
> object created by define-simple-class). But there are some exceptions: if I
> use objects such as an integer number or a string, then dereferencing them
> yields the right values.

Literal and static values can be evaluated and initialized in multiple
locations: the class initialize; and object initialized; the "run" method.
Where things are initialized may depend on compiler flags (such as --module-static)
and what kind of object is being initialized. I don't remember exactly what
happens when; it has changed over the years.

So it is possible the Android environment may cause some step in the initialization
to be skipped or things to be done in the wrong order.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

  reply	other threads:[~2022-10-31 16:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 10:51 Panicz Maciej Godek
2022-10-31 16:25 ` Per Bothner [this message]
2022-11-02  8:10   ` Panicz Maciej Godek

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8f88c98-a63d-3fce-5f29-65893ce89bae@bothner.com \
    --to=per@bothner.com \
    --cc=godek.maciek@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).