public inbox for
 help / color / mirror / Atom feed
* Re: Environment initialization on Android
       [not found] <>
@ 2022-10-31 16:25 ` Per Bothner
  0 siblings, 0 replies; only message in thread
From: Per Bothner @ 2022-10-31 16:25 UTC (permalink / raw)
  To: Panicz Maciej Godek, kawa

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-31 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2022-10-31 16:25 ` Environment initialization on Android Per Bothner

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).