View Issue Details

IDProjectCategoryView StatusLast Update
0000160LDMudLPC Compiler/Preprocessorpublic2009-10-06 02:22
ReporterlarsAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0000160: Extend the capabilities of closure evaluation
DescriptionShort: Extension of the capabilities of closure operators.
Date: 981202
Type: Feature
State: Unclassified
From: Zwirch

Zwirch@PK-Mud tells you: noch eine andere idee zu closures: ist es moeglich,
die binaeren operatoren #'+, #'&& usw. auf beliebig viele parameter zu erweitern,
so dann man zb mit apply(#'+, array) ein array von zahlen aufsummieren koennte
oder etwas in der art ({#'+,"text1",'x,"text2"}) klappen wuerde

Note: With a better LPC compiler this could be extended to normal LPC.
Statements like a+"x"+b+"y" could be made more efficient because the
result string could be allocated to the right size in the first place.
Maybe an instruction F_ADD_MULTI <numarg>?

The '+' operator could compile to a different VM instruction than the #'+
closure (right now its the same).
TagsNo tags attached.
External Data (URL)

Relationships

related to 0000181 closedGnomi New efuns: fold_left(), fold_right() 

Activities

_xtian_

2004-12-07 06:28

reporter   ~0000240

for lambda-operators: this would be useful indeed

Issue History

Date Modified Username Field Change
2004-11-26 19:43 lars New Issue
2004-12-07 06:28 _xtian_ Note Added: 0000240
2009-10-06 02:22 zesstra Relationship added related to 0000181