Re: Request for Comment: Callable CRM114 Classifiers (libcrm114) --> OOBC

"Ger Hobbelt" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
On Mon, Oct 6, 2008 at 7:17 AM, Eugene Crosser <[email protected]> wrote:
> Ger Hobbelt wrote:
>
>>> stuff in your examples looks a bit too verbose/complicated to me...
>>
>> ?? ;-S   That's very basic macro stuff.
>
> Conceptually, yes. All I am saying that the 'user' would not want to
> type a whole line of keywords to do something as basic as a debug
> printout. And that
>
>        func(FACILITY(SEVERITY), ...)
>
> is (a bit) less easy to perceive than
>
>        func(FACILITY, SEVERITY, ...)
>
> or
>
>        func(FACILITY|SEVERITY, ...)
>
> if you prefer...

Again, the only users are the ones coding libcrm114 itself; /not/ the
folks who download and 'use' it. As such, the word 'user' is quite
misleading here; it's rather the provider who's involved here. That'd
be Bill, unless libcrm114 is becoming real joint effort.

And since we've got two 'levels' right now, the whole shebang can be
wrapped in two other simple macros, which would entirely remove the
stuff from cluttering the screen:

trace_internal(...)

and

trace_user(...)


Note however that you cannot do that kind of simplification with
inline functions (got to be macros) as passing through both 'this' and
'propagator' parameters as well is mandatory -- if you ever want
object-based libcrm114 *users* (again, that's NOT the folks coding
this, they are the ones who write one tiny function and hook it up to
libcrm114) to be able to integrate this stuff into their systems
without a plethora of 'hacks'. (That'd be Python, Java, C#, C++,
you-name-it developers.)


Would *working* [sample] code help in this discussion so anyone can
see who is doing/coding what exactly?





-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.