comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Neat and tidy solution to following problem?
Date: Wed, 08 May 2002 01:11:36 GMT
Date: 2002-05-08T01:11:36+00:00	[thread overview]
Message-ID: <3CD87B38.D3DE1CC4@acm.org> (raw)
In-Reply-To: 8IWB8.2994$0h6.128758@newsfep1-win.server.ntli.net

"chris.danx" wrote:
> 
> In the example given previously, the function getWord is declared like this
> 
> getWord :: String -> (String, String)
> 
> This means it takes a string and returns a pair of strings as a tuple.  If
> you want to add all the words in the String to a data structure in another
> function, you can use recursion.  Somethings might just be neater if this
> could be done without fussing with explicit* record types.

In Ada every type must be explicitly declared before it can be used.
There are no exceptions to this rule. So it might be "neat" or "keen" or
even easier to hack in Ada if this weren't the case, but that doesn't
change Ada.

-- 
Jeff Carter
"Hello! Smelly English K...niggets."
Monty Python & the Holy Grail



  reply	other threads:[~2002-05-08  1:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07 18:24 Neat and tidy solution to following problem? chris.danx
2002-05-07 19:17 ` Preben Randhol
2002-05-07 20:21   ` chris.danx
2002-05-08  1:11     ` Jeffrey Carter [this message]
2002-05-08  8:16       ` Danx
2002-05-07 20:38 ` achrist
2002-05-07 20:56   ` chris.danx
2002-05-25 20:56     ` Robert I. Eachus
replies disabled

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