From: Brian Rogoff <bpr@bpr.best.vwh.net>
Subject: Re: Side-Effects in Functions [Rosen Trick]
Date: Fri, 23 Nov 2001 07:18:21 GMT
Date: 2001-11-23T07:18:21+00:00 [thread overview]
Message-ID: <Pine.BSF.4.10.10111230714090.35964-100000@bpr.best.vwh.net> (raw)
In-Reply-To: <WQ0L7.179179$3d2.7870972@bgtnsc06-news.ops.worldnet.att.net>
On Thu, 22 Nov 2001, David Thompson wrote:
> Brian Rogoff <bpr@shell5.ba.best.com> wrote :
> > It's called void, not null. The problem with C is that it ignores returned
> > value types so even though it has void it doesn't really use it. I imagine
> > a reworked Ada would only allow void returning function/procedure values
> > to be ignores, and so wouldn't lose type safety.
> >
> I'm not sure what you were trying to say there.
[...snip...]
> What you may be after is that the value of any non-void expression
> in C, whether it is the return from a function or not, is discarded
> if that expression constitutes an entire statment.
This is exactly what I was trying to say, thanks. In ML, an expression
oriented language, things separated by ";" must return unit (which is like
void) so you can't just ignore the results of functions unless you
explicitly request to do so. If we got rid of the function/procedure
distinction in an Ada like language then we'd do things this way I think.
-- Brian
next prev parent reply other threads:[~2001-11-23 7:18 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-05 21:10 Side-Effects in Functions [Rosen Trick] Alexandre E. Kopilovitch
2001-11-05 21:58 ` Brian Rogoff
2001-11-22 6:22 ` David Thompson
2001-11-23 7:18 ` Brian Rogoff [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-11-02 3:56 List container strawman Ted Dennison
2001-11-02 7:28 ` Ehud Lamm
2001-11-02 15:06 ` Ted Dennison
2001-11-02 15:32 ` Marin David Condic
2001-11-02 16:33 ` Ted Dennison
2001-11-02 16:43 ` Marin David Condic
2001-11-02 22:51 ` Jeffrey Carter
2001-11-03 0:24 ` Matthew Heaney
2001-11-03 2:21 ` Jeffrey Carter
2001-11-03 22:51 ` Rosen Trick [List container strawman] Nick Roberts
2001-11-04 13:07 ` Robert Dewar
2001-11-04 17:17 ` Side-Effects in Functions [Rosen Trick] Nick Roberts
2001-11-05 2:46 ` Robert Dewar
2001-11-05 7:26 ` pete
2001-11-05 10:29 ` Dmitry A. Kazakov
2001-11-05 11:19 ` pete
2001-11-05 14:59 ` Dmitry A. Kazakov
2001-11-05 15:21 ` Preben Randhol
2001-11-05 16:04 ` Ted Dennison
2001-11-05 16:33 ` Dmitry A. Kazakov
2001-11-05 17:42 ` Warren W. Gay VE3WWG
2001-11-05 18:11 ` Preben Randhol
2001-11-06 8:38 ` Dmitry A. Kazakov
2001-11-06 9:31 ` tgingold
2001-11-06 0:10 ` Nick Roberts
2001-11-06 9:30 ` Dmitry A. Kazakov
2001-11-06 20:08 ` Florian Weimer
2001-11-06 22:48 ` Nick Roberts
2001-11-07 10:46 ` Florian Weimer
2001-11-05 13:56 ` Robert Dewar
2001-11-05 16:08 ` Ted Dennison
2001-11-05 17:44 ` Warren W. Gay VE3WWG
2001-11-05 15:56 ` Ted Dennison
2001-11-05 18:46 ` Nick Roberts
2001-11-08 11:51 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox