On 2/6/06, Chip Salzenberg <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 06, 2006 at 11:23:40AM +0000, Roger Browne wrote:
> > Chip Salzenberg wrote:
> > > I'm struggling with good PIR syntax for it
> > > though ... Void calls will be common, so it'd be nice to express
> > > them easily.
> >
> > How about a 'void' keyword:
> >    void foo(bar, baz)
>
> Being the first proposal, it's pretty much the best one so far.  :-,
> --
since we already have (as will reminded me) syntax that can be used to
express this difference, and it's tested, i may as well mention it.

  () = foo(42)

works and is tested (the last two tests) in t/compilers/imcc/pcc.t. it
was added in order to make it easier for code generators, which
previously needed to special-case function calls with no returns, or
where they are ignored.

~jerry

Reply via email to