ugly named parameter attempt

Code



Compilation output:

--- foo!prelude((int, float, string)) --- int first = _param_0; float second = _param_1; string third = _param_2; --- foo!prelude((string, float, int)) --- string third = _param_0; float second = _param_1; int first = _param_2; --- foo!prelude((int, float, string)) --- int FIRST = _param_0; float SECOND = _param_1; string THIRD = _param_2; [!!] missing parameter first [!!] missing parameter second [!!] missing parameter third


Application output:

int first -99 float second 0.2 string third I am a string int first 0 float second 3.14 string third I am still a string int first -256 float second 0 string third default value

Paste info


Author: Zorael
Views: 384
Private: no
Expires: Never
Uploaded: 20.03.16 21:15
Votes: 0

Compilation


Compiler: DMD 2.077.1 ( 2.077.1 )
Pointer size: m64

Actions