View Issue Details

IDProjectCategoryView StatusLast Update
0000240LDMudOtherpublic2009-09-30 17:40
ReporterlarsAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0000240: LPC keyword 'yield'
DescriptionShort:'yield' to convert statements into expressions
From: Lars
Date: 2001-03-09
Type: Feature
State: New

E.g.
a = if (foo) { bla; yield 1; }
    else { if (bar) yield 2; yield 3;}
TagsNo tags attached.
External Data (URL)

Activities

zesstra

2009-09-30 17:29

administrator   ~0001374

Isn't that, was
val = a ? b : c
is doing?

Gnomi

2009-09-30 17:40

manager   ~0001377

Hmm, that syntax looks rather complicated for an amateur language like LPC.

(But it would be fun to implement a Python-style yield statement. I don't know if there's any need for it, but it surely would be fun...)

Issue History

Date Modified Username Field Change
2004-11-26 23:52 lars New Issue
2009-09-30 17:29 zesstra Note Added: 0001374
2009-09-30 17:40 Gnomi Note Added: 0001377