[m-dev.] Re: for review: removing --args simple
Zoltan Somogyi
zs at cs.mu.OZ.AU
Tue Jun 1 13:57:12 AEST 1999
>>I thought about that. You are right, replacing symbolic names with
>>register numbers reduces readability. However, since we are using the
>>same registers for both input and output, anyone who maintains such code
>>*must* be aware of the need not to overwrite registers containing inputs
>
> How about using r1__count_output etc? Its a bit more in-your-face than a
> comment.
Given that each of these registers is typically only used once at the start
and maybe once at the end, such a variable name has no more chance of being
correct than a comment. This gives the suggestion a lousy payoff-to-cost ratio.
Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list