View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000160 | LDMud | LPC Compiler/Preprocessor | public | 2004-11-26 19:43 | 2009-10-06 02:22 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0000160: Extend the capabilities of closure evaluation | ||||
Description | Short: 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). | ||||
Tags | No tags attached. | ||||
External Data (URL) | |||||