User Defined Attributes
David Nadlinger
see at klickverbot.at
Tue Nov 6 10:01:35 PST 2012
On Tuesday, 6 November 2012 at 17:51:28 UTC, Walter Bright wrote:
> On 11/6/2012 9:32 AM, David Nadlinger wrote:
>> service Calculator {
>> i32 calculate(1:i32 a, 2:i32 b, 3:Op op)
>
> What does this mean? That 'a' is the first parameter and has
> type i32?
It means that ›a‹ has type i32 and is the parameter with ID
1. The parameter list could have also been (42:i32 a, 5:i32 b,
1:Op op). If no ids are specified, negative ones are
auto-assigned by the compiler, starting from -1.
David
More information about the Digitalmars-d-announce
mailing list