On Mon, 28 Nov 2005, Alfonso Ranieri wrote:

> [Sorry if you get this twice... Some problem with my mail server today...]
> 
> Someone (sorry again: I have the original msg at work) wrote about it is not
> right to not use TA_USER as tags base value in libraries. I don't think so.
> In a public library we should always use a peculiar tags set. It lets you
> debug stuff easier and ...

Debugging is simplified by strongly typed languages where Tags are 
supported and discriminated ... (I know only one language supporting tags. 
:-)

> You never know what a programmer is going to do with your functions. 
> Just as stupid example, let's suppose you are in foo(struct TagItem *) 
> where foo gets its own tags, parses them and then it calls URL_OpenA() 
> passing the same array ptr, without filtering. Also, add some other tag 
> list based function in foo() to see how having separate tags helps...

No programmer can make assumption about the tags OpenURL will additionally 
accept some day. So he is not allowed to mix custom tags with OpenURL 
tags. If he wants two sets of tags (a custom one and the one of OpenURL) 
he has to declare two tag list parameters for 'foo' (then C programmers 
will get angry, because they can only have one varargs list for every 
function :-) or he has to provide a custom tag pointing to an OpenURL tag 
array.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/16uqlB/TM
--------------------------------------------------------------------~-> 

Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MUI/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to