comp.lang.ada
 help / color / mirror / Atom feed
From: "R. Tim Coslet" <R_Tim_Coslet@pacbell.net>
Subject: Re: Unchecked Deallocation?
Date: Sat, 13 Jul 2002 03:00:06 GMT
Date: 2002-07-13T03:00:06+00:00	[thread overview]
Message-ID: <B954E4C6.4872%R_Tim_Coslet@pacbell.net> (raw)
In-Reply-To: mRKX8.166938$Uu2.37175@sccrnsc03

Think of Procedures as "Commands": they do things and can change the state
of variables.

Think of Functions as "Queries": they calculate and look up things, but are
not allowed to change the state of variables.

That slightly oversimplifies it, but it is the "basic" difference between
the two in Ada.

-- 
        R. Tim Coslet
        r_tim_coslet@pacbell.net

Technology, n. Domesticated natural phenomena.


> From: Caffeine Junky <nospam@hotmail.com>
> Organization: AT&T Broadband
> Newsgroups: comp.lang.ada
> Date: Sat, 13 Jul 2002 00:52:34 GMT
> Subject: Re: Unchecked Deallocation?
> 
> 
> I seem to have an affinity for functions, and I dont know why. Any
> rules of thumb on when it's a good idea to (use/not use)
> functions and procedures in Ada95?




  reply	other threads:[~2002-07-13  3:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12 22:44 Unchecked Deallocation? Caffeine Junky
2002-07-12 23:12 ` Robert A Duff
2002-07-13  0:52   ` Caffeine Junky
2002-07-13  3:00     ` R. Tim Coslet [this message]
2002-07-13  2:31   ` tmoran
2002-07-13  3:10     ` Caffeine Junky
replies disabled

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