[plt-scheme] Re: class.ss: init-field - renamed-id w/o default gives error, while ranamed-id w/default does not.
Matthew Flatt <mflatt at ...> writes:
>
> At Sun, 29 Apr 2007 15:38:49 +0000 (UTC), Kyle Smith wrote:
> > (init-field
> > (int-id ext-id))
>
> To distinguish internal and external names when there's no
> default-value expression, you still need a pair of parens (i.e., an
> extra pair) around the two identifiers:
>
> (init-field
> ((int-id ext-id)))
>
> Matthew
Thanks Mattew,
I stand corrected. When I went back to the manual and worked through the
syntax for the init-field clause, it does indeed require a double set of
parens, even without a default value. My mistake.
Thanks for your help.
--kyle