Defmod Extension

Tony van der Hoff OSLib at mk-net.demon.co.uk
Sat Nov 4 09:47:32 GMT 2000


On Fri, 3 Nov 2000, at 14:38:44, Jonathan Coxhead
<jonathan at doves.demon.co.uk> wrote on the subject "Defmod Extension":

<snip>
>   I think you are right. My habit, when trying to deprecate interfaces, is 
>to use a shorter name. It's hard to get much shorter than "action" though! 
>But it would be possible--Toolbox_Act? Then use |toolbox_act| and 
>|toolbox_ACT_MEMBERS| everywhere; and define all existing toolbox_action 
>types in terms of those, and deprecate them?
>
>
>   Ick!
>
:-)

Well, in view of your lack of enthusiasm for the macros idea, and dearth
comment from anyone else here, coupled with the relative difficulty in
implementing it sensibly, I think I'll drop that one for now. 

As for Toolbox_Act, I still can't really see how that helps. For
compatibility I'd still have to typedef toolbox_action, so nothing would
be gained AFAICS. The point is that it is an individual case of a mis-
named structure, not a generic problem.

So, I guess I'll just limit the changes to flagging deprecated
interfaces in the headers and manuals. 

I will split out the manuals, though.

Thanks for your help and advice,
Tony

-- 
Tony van der Hoff         |  mailto:OSLib at mk-net.demon.co.uk
Buckinghamshire, England  |  http://www.mk-net.demon.co.uk/oslib/
----------------------------------------------------------------



More information about the oslib-team mailing list