dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]indexers with variable args


From: Rhys Weatherley
Subject: Re: [DotGNU]indexers with variable args
Date: Mon, 11 Nov 2002 21:18:26 +1000

Gopal V wrote:
> 
> Hi All,

Aren't you supposed to be studying for exams, not fixing bugs? :-)

>         I was debugging marcusU's new problem of variable args for
> indexers when I ran into a tough problem .... Can properties
> have `.param[2]' ...

No, they can't.  However, you can store the .param information
on the get and set methods for the property and pick it up from
there.  Some modifications will be needed to GetItemParamType
in "cs_invoke.tc", and to "CreateProperty" in "cs_gather.c".

Note: a property may only have get or set, but not always both,
so the .param will need to be stored on both get and set.

Some changes will be required to the grammar also to recognise
"params", but you probably already know that.

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]