mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Clarifications in delegates
This commit is contained in:
parent
82a37a456a
commit
b86786023c
@ -189,7 +189,7 @@ string? ok_to_be_null(int? test_int) { } // "?" denotes possible null value
|
|||||||
|
|
||||||
delegate void DelegateDemo(char char_a);
|
delegate void DelegateDemo(char char_a);
|
||||||
|
|
||||||
void delegate_match(char char_a) { // Matches the delegate's signature
|
void delegate_match(char char_a) { // Matches DelegateDemo's signature
|
||||||
stdout.printf("%d\n");
|
stdout.printf("%d\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user