pipe

danil osipchuk danil.osipchuk at gmail.com
Mon Aug 27 16:55:38 UTC 2007


2007/8/27, Igor Stasenko <siguctua at gmail.com>:
> And this can be easily detected. If you look at parse tree, a
> statement which beginning from send node (not return node and not
> assignment node) can be considered as send without need a result,
> because its simply dropped at the end.
>

Well, if it can be easily detected - why abuse the programmer with
unnecessary choice? Let the compiler decide as Jason suggests (see the
bottom of his message).

> > > And i think that maybe from computational  point of view, it might be
> > > useful to indicate if we need to return result from a method or don't.
> >
> > If it were even possible to know I still wouldn't find the
> > unmeasurably small gains worth the added complexity.
> >
> Unmeasurably?
/ snip again/


Jason:
> > This could be done today (if a bytecode existed for it) by the
> > compiler which actually sees if the value is used or not.
> >
> >
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>

cheers,
  Danil



More information about the Squeak-dev mailing list