View Issue Details

IDProjectCategoryView StatusLast Update
0000273LDMudLPC Compiler/Preprocessorpublic2009-10-02 06:00
ReporterlarsAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0000273: Named function arguments
DescriptionShort: Better functiona arg definitions
From: Nathan
Date: 2001-12-13
Type: Feature
State: New

In function calls, allow specification of arguments by name:

  foo(1, victim: him, 2);


In varargs function definitions, allow to mark where the optional args
begin, for example with a ';':

  void foo (int i, int j ; mixed k)
TagsNo tags attached.
External Data (URL)

Activities

zesstra

2009-10-02 06:00

administrator   ~0001410

The possibility to distinguish between needed an optional argument might be done by using int fun(int arg1, string arg2, varargs int moreargs), although that is a bit more clumsy then just marking the first optional argument.
But I would not define this issue as really important.

Issue History

Date Modified Username Field Change
2004-11-26 23:25 lars New Issue
2009-10-02 06:00 zesstra Note Added: 0001410