Helmut Leitner /
Struct Sort
Difference (last change) (no other diffs, normal page display)
Added: 20a21,22
import std.stdio; |
Changed: 30c32
char [] name; |
string name; |
Changed: 45c47
return As.size; |
return As.sizeof; |
Changed: 50,51c52,53
char [] a = ((As *) p1).name; char [] b = ((As *) p2).name; |
auto a = (cast(As *) p1).name; auto b = (cast(As *) p2).name; |
Changed: 58,59c60,61
int a = ((As *) p1).x; int b = ((As *) p2).x; |
int a = (cast(As *) p1).x; int b = (cast(As *) p2).x; |
Changed: 80c82
void AsArrayPrintTitle?(As [] array, char [] title) |
void AsArrayPrintTitle?(As [] array, string title) |
How to sort a struct. Built from a hint of WalterBright in NewsDmD, Apr 03. Linked from /Snippets.
The name for the TypeInfo? class
- TypeInfo_S8ssort_As
- TypeInfo_S
- number of characters of the following three parts
- source file name (or module name?)
- _ (separator)
- struct name
![]() |
|
FolderExamples