History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-759
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Avishay Lavie
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Boo

Generic generators

Created: 16/Sep/06 03:37 PM   Updated: 04/Feb/07 03:53 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

File Attachments: 1. Text File Boo-GenericGenerators.patch (98 kb)
2. File generators-1.boo (0.2 kb)

Issue Links:
dependent
 


 Description  « Hide
def ff() as IEnumerable of int:
yield 1
yield 1
yield 2

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Rodrigo B. de Oliveira - 27/Oct/06 12:49 PM
generic generators test case previously attached to BOO-448

Avishay Lavie - 28/Oct/06 03:47 PM
I got it to work, but the code is pretty ugly. I'm thinking of refactoring a bit.

Avishay Lavie - 03/Feb/07 09:42 AM
Added patch for generic generators. Needs some testing before committing.

Avishay Lavie - 04/Feb/07 03:53 PM
Fixed. Generator methods and generator expressions are now supported, with type inference.