Generators

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

Generators

drush66
I have found on StackOverflow that GNU and Squeak support Generators:

http://stackoverflow.com/questions/6529815/how-are-coroutines-implemented-in-smalltalk

Could they be used with Pharo?

Davorin Rusevljan
http://www.cloud208.com/

Reply | Threaded
Open this post in threaded view
|

Re: Generators

Marcus Denker-4

On Sep 20, 2011, at 3:50 PM, drush66 wrote:

> I have found on StackOverflow that GNU and Squeak support Generators:
>
> http://stackoverflow.com/questions/6529815/how-are-coroutines-implemented-in-smalltalk
>
> Could they be used with Pharo?

According to this tracker entry:

        http://code.google.com/p/pharo/issues/detail?id=3527

Class Generator was added as 13009 very early in 1.3.

Yet, in my 1.3 there is no class Generator...

(nobody needed it, either...)

I will re-open the report.


--
Marcus Denker -- http://marcusdenker.de


Reply | Threaded
Open this post in threaded view
|

Re: Generators

hernanmd
Hi Marcus

2011/9/20 Marcus Denker <[hidden email]>:

>
> On Sep 20, 2011, at 3:50 PM, drush66 wrote:
>
>> I have found on StackOverflow that GNU and Squeak support Generators:
>>
>> http://stackoverflow.com/questions/6529815/how-are-coroutines-implemented-in-smalltalk
>>
>> Could they be used with Pharo?
>
> According to this tracker entry:
>
>        http://code.google.com/p/pharo/issues/detail?id=3527
>
> Class Generator was added as 13009 very early in 1.3.
>
> Yet, in my 1.3 there is no class Generator...
>
> (nobody needed it, either...)
>

I'm using generators for filling values on matrices and random
residues on sequences. For example;

( Generator on: [: g | 15 timesRepeat: [ g yield: 2 ] ] ) upToEnd

Hernán

Reply | Threaded
Open this post in threaded view
|

Re: Generators

Stéphane Ducasse
In reply to this post by Marcus Denker-4
Strange I'm quite sure that I integrated in 1.3 :)

Stef

On Sep 20, 2011, at 3:57 PM, Marcus Denker wrote:

>
> On Sep 20, 2011, at 3:50 PM, drush66 wrote:
>
>> I have found on StackOverflow that GNU and Squeak support Generators:
>>
>> http://stackoverflow.com/questions/6529815/how-are-coroutines-implemented-in-smalltalk
>>
>> Could they be used with Pharo?
>
> According to this tracker entry:
>
> http://code.google.com/p/pharo/issues/detail?id=3527
>
> Class Generator was added as 13009 very early in 1.3.
>
> Yet, in my 1.3 there is no class Generator...
>
> (nobody needed it, either...)
>
> I will re-open the report.
>
>
> --
> Marcus Denker -- http://marcusdenker.de
>
>