Yaxo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Yaxo

Bill Schwab-2
Steve,

Thanks for the Yaxo port!  I look forward to trying SIXX between Dolphin and
Squeak - what I have in mind won't be trivial though =:0

I didn't quite follow the need for #nextOrNil.  I also freely admit to not
having fully researched it; but it's not widely used in the Squeak images
that I use.  Also, the implementation you added simply answers nil when the
primitive fails, and the other implementations handle things that look like
"non-removeable singularities".  Appologies in advance in the event that I'm
missing something.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Yaxo

Steve Alan Waring
Hi Bill,

> I didn't quite follow the need for #nextOrNil.  I also freely
> admit to not having fully researched it; but it's not widely
> used in the Squeak images that I use.

It has the same semantics as Squeak's #next. As an example, try evaluating
the following in both Dolphin and Squeak:

   ('a' readStream) next;next

> Also, the implementation you added simply answers nil
> when the primitive fails, and the other implementations
> handle things that look like "non-removeable singularities".

Thanks, I agree this is bug that will cause problems for some kinds of
Streams. I would lean towards re-implementing the method in those Streams,
rather than testing for atEnd or handling end of stream exceptions. If you
have any suggestions or fixes, please send them through.

Thanks,
Steve

==========
Steve Waring
[hidden email]
http://www.dolphinharbor.org/dh/harbor/steve.html


Reply | Threaded
Open this post in threaded view
|

Re: Yaxo

Bill Schwab-2
Steve,

> > I didn't quite follow the need for #nextOrNil.  I also freely
> > admit to not having fully researched it; but it's not widely
> > used in the Squeak images that I use.
>
> It has the same semantics as Squeak's #next. As an example, try evaluating
> the following in both Dolphin and Squeak:
>
>    ('a' readStream) next;next

Got it =:0  Similar comments apply to #next:.  That makes sense from the
days before exception handling, but it seems these methods should now
complain if asked to read off of the end.  FWIW, Flow is said to correctly
raise errors.  My Squeak 3.2 image didn't care for it though, and I haven't
yet had a chance to figure out what's happening and why.  Thanks for the
heads-up.


> > Also, the implementation you added simply answers nil
> > when the primitive fails, and the other implementations
> > handle things that look like "non-removeable singularities".
>
> Thanks, I agree this is bug that will cause problems for some kinds of
> Streams. I would lean towards re-implementing the method in those Streams,
> rather than testing for atEnd or handling end of stream exceptions. If you
> have any suggestions or fixes, please send them through.

Will do.  If you have a chance to try Flow, I'd be curious to know what you
think.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]