comp.lang.ada
 help / color / mirror / Atom feed
* Syntax question
@ 1994-10-05  5:19 Adrian Cho
  1994-10-05 11:52 ` Robert Dewar
  0 siblings, 1 reply; 30+ messages in thread
From: Adrian Cho @ 1994-10-05  5:19 UTC (permalink / raw)


I am writing a chart comparing the syntax of a number of languages for an English sentence.
For example:

English:    Jack, put the box on the table

Smalltalk:  Jack putThe: box onThe: table

C:          putOn( Jack, box, table )

C++:        Jack.putOn( box, table )

Would someone in this newsgroup be kind enough to e-mail to me (adrian@acm.org)
the equivalent for the language of this newsgroup.  I think the above example
is self-explanatory.  Jack, box, and table are entities or objects and 'put on' is an action
or verb.   Please use the correct case.

Any help is much appreciated.

Thanks

Adrian

adrian@acm.org




^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <Cx6pG3.IEp@ucc.su.oz.au>]
* Syntax question
@ 1995-03-11 10:12 Geoffrey Hollingworth
  1995-03-11 15:16 ` Robert A Duff
                   ` (4 more replies)
  0 siblings, 5 replies; 30+ messages in thread
From: Geoffrey Hollingworth @ 1995-03-11 10:12 UTC (permalink / raw)


Hi

I am currently researching into real time languages and hope
you ada experts can explain something to me.  I apologise for
my lack of knowledge in ada.
When binding formal parameters with actual parameters the '=>'
operator is used, irrespective of whether the formal parameter
is declared as IN, INOUT or OUT.  Is there a reason for this ?
If I proposed an alternative syntax where "=>" indicated the FP
was an IN parameter, "<=" to indicate an OUT parameter and "<=>"
to indicate an INOUT.
Then the caller of the procedure/function would have explicitly
had to understand to direction of the parameters and at the same
time increased the readability of his/her code.
Is there a fundamental flaw in this line of thinking ?
Does ada manage this problem via a different mechanism ?

Any information, historical or otherwise, would be a great help
to me and greatly appreciated.

thanks

/geoff



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Syntax Question
@ 2001-07-05 17:58 Robby Simpson
  2001-07-05 18:32 ` Marin David Condic
                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From: Robby Simpson @ 2001-07-05 17:58 UTC (permalink / raw)


I have some ADA code I am porting to C (I am new to ADA).  What would
the following code mean?

some_var : some_type;

some_var := (some_other_type with attr_x => value1, attr_y => value2);

Robby



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2001-07-09 12:39 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-05  5:19 Syntax question Adrian Cho
1994-10-05 11:52 ` Robert Dewar
1994-10-05 17:19   ` Norman H. Cohen
     [not found] <Cx6pG3.IEp@ucc.su.oz.au>
1994-10-05 14:20 ` Tucker Taft
     [not found]   ` <36ui0u$4dg@gnat.cs.nyu.edu>
1994-10-06  0:04     ` David Weller
  -- strict thread matches above, loose matches on Subject: below --
1995-03-11 10:12 Geoffrey Hollingworth
1995-03-11 15:16 ` Robert A Duff
1995-03-11 20:45 ` Michael Feldman
1995-03-15 23:29   ` David Kusuda
1995-03-16  2:25     ` David Weller
1995-03-16 14:44       ` Spencer Allain
1995-03-19  1:04       ` Robert Dewar
1995-03-16  9:19     ` Fred J. McCall
1995-03-17  5:44     ` Niklas Holsti
1995-03-19 20:53       ` Robert Dewar
1995-03-11 21:44 ` Road Pilot
1995-03-23 13:07   ` Bob Collins
1995-03-24  1:11     ` Kevin F. Quinn
1995-03-27 14:19       ` Norman H. Cohen
1995-03-13  4:43 ` Keith Thompson
1995-03-16 20:37   ` Norman H. Cohen
1995-03-21  0:51     ` Robert Dewar
1995-03-16 19:20 ` Adam Beneschan
2001-07-05 17:58 Syntax Question Robby Simpson
2001-07-05 18:32 ` Marin David Condic
2001-07-05 18:38 ` Robby Simpson
2001-07-05 19:09 ` Ted Dennison
2001-07-05 20:14   ` Robby Simpson
2001-07-05 21:44 ` Robert Dewar
2001-07-09 12:39   ` Robby Simpson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox