[m-rev.] [dotnet-foreign] diff: handle properties
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Jun 18 16:07:27 AEST 2001
On 18-Jun-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> On 16-Jun-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > Also, wouldn't it be better to map Mercury field functions
> > (i.e. "foo"/"foo:=") to .NET properties, rather than (or perhaps
> > as well as?) mapping "get_foo"/"set_foo" to properties?
>
> Please explain how one distinguishes the field function "foo" from the
> non-field function "foo"?
Well, if there is a 'foo :=' function, then 'foo' should probably be treated
as a field function, and mapped to a property.
That doesn't help much for read-only properties, I admit --
hence the "perhaps as well as".
But maybe we should be using `pragma property' or seomthing along
those lines rather than giving special semantics to particular naming
patterns.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list