2import std.stdio : writeln, writefln;
8* this function is safe because it doesn't use pointer arithmetic
10int the_ultimate_answer() @safe {
13 // now we can safely return our answer
19 // function call with string literal
20 writeln("Hello World!");
22 // an int array declaration
23 int[] arr1 = [1, 2, 3];
24 // an immutable double
25 immutable double pi = 3.14;
30 // another pointer to the same thingy
35 // another function call
36 writefln("%s\n%s\n%s\n", arr1, d1, the_ultimate_answer());
39 writeln("this seems wrong");
42 writeln("I'm giving up, this is too crazy for me");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list