From: | 1Z <pdjpurchase@googlemail.com> |
Newsgroups: | comp.compilers |
Date: | Fri, 11 Mar 2011 16:49:30 -0800 (PST) |
Organization: | Compilers Central |
References: | 11-03-032 |
Keywords: | syntax, optimize |
Posted-Date: | 11 Mar 2011 19:55:46 EST |
On Mar 11, 7:15 pm, noitalmost <noitalm...@cox.net> wrote:
> I was thinking of something like:
> pure function foo(x,y : int) int
> begin
> ...
> end;
>
> Then foo isn't allowed to modify its parameters or to reference
> (except possibly through a parameter) or modify any non-local
> variables. ...
This has been added as a non standard extension to C in gcc, so it is
doable. I think it is useful, since you don't have to use it if your
don't want to.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.