"Jarrod Hollingworth" "Colin Johnsun" "Graham Ritchie" "Ian Krigsman" "James D Duff" "Kim Bracknell" "Mathias Burbach" "Misha Charrett" "Niels Maschmeyer" "Paul Jervois"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$APPTYPE CONSOLE} | |
program haskell_tree_4; | |
type | |
PMyTree = ^MyTree; | |
MyTree = record | |
case b:boolean of | |
false : ( ); | |
true : ( Node : integer; | |
Left, Right : PMyTree ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: Hands-on Rust. | |
use std::io::stdin; | |
fn main() { | |
let MYLIST = [ "One", "Two", "Three" ]; | |
for i in 0..3 { | |
println!("{}", MYLIST[i]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$APPTYPE CONSOLE} | |
program Multi_Case; | |
// Also see - http://delphi.fosdal.com/2010/12/generic-case-for-strings.html | |
// - http://delphi.fosdal.com/2010/12/generic-cache.html | |
uses system.SysUtils, system.Generics.Defaults; | |
// Just Any type Delphi Case statement (2010) | |
// Sergey Antonov Blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$APPTYPE CONSOLE} | |
program Nulls_in_Delphi; | |
uses | |
System.SysUtils; | |
const nl = sLineBreak; | |
procedure print(a:pointer;b:longint; s:string); | |
begin | |
writeln( longint(a).ToHexString, ' ', b.ToHexString, ' ', s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program AutoFreeTest; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils, | |
System.Classes; | |
type | |
IAutoFree = interface |
DUnit-M
Pascaliburnus - Data driven unit testing for Delphi
I hereby claim:
- I am pmcgee69 on github.
- I am paulmcgee (https://keybase.io/paulmcgee) on keybase.
- I have a public key whose fingerprint is 8DD8 B479 B84A 1A98 2477 F21B A694 C45B C584 7FFE
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Reader / unReader syntax | |
newtype Reader e a = Reader { unReader :: e -> a } | |
:t Reader | |
:t unReader | |