This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: New define-simple-class options
- From: Per Bothner <per at bothner dot com>
- To: Chris Dean <ctdean at sokitomi dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 17 Feb 2004 11:05:44 -0800
- Subject: Re: New define-simple-class options
- References: <5119.1077043577@mercedsystems.com>
Chris Dean wrote:
Here are my questions: If there are multiple init expressions for a
single slot, what is the order in which those expressions are evaluated?
That should probably be an error.
If there are multiple slots, each with their own init expressions, in
which order are they evaluated? Or is it not defined?
Of course initialization of static slots happens before instance slots.
Otherwise, if it's the same kind of init keyword, they're in lexical
order. Otherwise, it is currently undefined.
In the current implementation, it looks like init-form: values are
evaluated before init: values. That's an implementation artifact,
which I don't think we want to enshrine.
--
--Per Bothner
per@bothner.com http://per.bothner.com/