Created
July 2, 2018 15:14
-
-
Save Vindaar/2933bcc614ea6960ba6f393bb14ffdd9 to your computer and use it in GitHub Desktop.
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
type | |
Func1 = proc (p: seq[float]) | |
Func2[T] = proc (p: seq[float], d: T) | |
proc f1(p: seq[float]) = discard | |
proc f2(p: seq[float], d: float) = discard | |
echo "f1 is ", f1 is Func1 # returns false | |
echo "f2 is ", f2 is Func2 # returns true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment