From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe)
Subject: Re: Comments
Date: 1996/11/18
Date: 1996-11-18T00:00:00+00:00 [thread overview]
Message-ID: <56p8l2$a6t$1@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: 19961113121001.HAA20548@ladder01.news.aol.com
ennals@aol.com writes:
>It can be useful for describing what function calls etc do.
>For example I might write a procedure (fake code)
>procedure brcp(s : screen ; i : image ; c : colours);
>#desc Build Really Cool Picture on screen %s of image %i with %c colours
But in Ada I can write
procedure Build_Really_Cool_Picture(
Of_Image : in Image;
On_Screen: in Screen;
Colour_Count: in Positive);
>brcp(myscreen, megaimage, 256);
>the comment would be:
>#com Build really coop picture on screen myscreen of image megaimage with
>256 colours.
and then call it as
Build_Really_Cool_Picture(Of_Image => Mega_Image,
On_Screen => My_Screen, Colour_Count => 256);
If you really want a preprocessor, write one that adds keyword=> to
arguments.
--
Mixed Member Proportional---a *great* way to vote!
Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.
next prev parent reply other threads:[~1996-11-18 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-07 0:00 Comments N.A.Smith
1996-11-11 0:00 ` Comments Hercules Gunter
1996-11-13 0:00 ` Comments ennals
1996-11-14 0:00 ` Comments johnherro
1996-11-14 0:00 ` Comments Dirk Dickmanns
1996-11-18 0:00 ` Richard A. O'Keefe [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-03-12 0:00 Comments Beamish
[not found] <7ttb4a$8mq$1@nnrp1.deja.com>
1999-10-12 0:00 ` Self-referential types Matthew Heaney
1999-10-13 0:00 ` Robert I. Eachus
1999-10-13 0:00 ` Brian Rogoff
1999-10-15 0:00 ` Robert I. Eachus
[not found] ` <slrn80fl9f.68j.aidan@skinner.demon.co.uk>
1999-10-19 0:00 ` Wes Groleau
1999-10-21 0:00 ` Robert Dewar
1999-10-21 0:00 ` Comments (was: Self-referential types) Wes Groleau
1999-10-21 0:00 ` Ehud Lamm
1999-10-23 0:00 ` Robert Dewar
1999-10-23 0:00 ` Ehud Lamm
1999-10-23 0:00 ` Comments Georg Bauhaus
1999-10-24 0:00 ` Comments Ehud Lamm
1999-10-26 0:00 ` Comments Robert I. Eachus
1999-10-28 0:00 ` Comments Jerry van Dijk
1999-10-28 0:00 ` Comments Ted Dennison
1999-10-25 0:00 Comments Wilhelm Spickermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox