C (44/414)

From:Allan Odgaard
Date:03 Jun 2000 at 02:37:35
Subject:Re: Includes and Boopsi questions.

On 03-Jun-00, Shinda wrote:

> I am trying to write a gadget class and what should I use superclass
> methods should it be DoSuperMethodA or DoSuperMethod. [...]

DoSuperMethodA() takes the message structere as argument, where the other is a
var-args variation.
E.g. you can either write:
struct SomeMessage msg = { method_id, args, ... };
DoSuperMethodA(cl, obj, msg);
or DoSuperMethod(cl, obj, method_id, args, ...);
Normally you'd use the first since your method receives a pointer to the
message structure.

> Also in the includes should I only use the clib includes or also the
> protos and pragmas.

Only the protos. The <proto/library.h> should include the necessary clib &
pragma files.

Regards Allan

------------------------------------------------------------------------
Take your development to new heights. Work with clients like Dell and
pcOrder. Submit your resume to jobs@liaison.com. Visit us at
http://click.egroups.com/1/4358/1/_/451227/_/959996421/
------------------------------------------------------------------------