public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: Per Bothner <per@bothner.com>
Cc: kawa@sourceware.org
Subject: Re: Environment initialization on Android
Date: Wed, 2 Nov 2022 09:10:24 +0100	[thread overview]
Message-ID: <CAMFYt2aq8xuFWyy3owgEoJVRCmgbgCO_wODrQp=S3C_trfDLUQ@mail.gmail.com> (raw)
In-Reply-To: <f8f88c98-a63d-3fce-5f29-65893ce89bae@bothner.com>

[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]

Thanks,
so far I've figured out that some issues can be resolved by using
define-early-constant wherever possible.

pon., 31 paź 2022, 17:26 użytkownik Per Bothner <per@bothner.com> napisał:

>
>
> 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-11-02  8:10 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
2022-11-02  8:10   ` Panicz Maciej Godek [this message]

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='CAMFYt2aq8xuFWyy3owgEoJVRCmgbgCO_wODrQp=S3C_trfDLUQ@mail.gmail.com' \
    --to=godek.maciek@gmail.com \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.com \
    /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).