Sure you can use pointers, the only problem is that you forgot to define the name of the first parameter and unfortunately this crashes the compiler. The following example works:
type fptr = (proc(x: int):int)
proc f(x:int): int =
result = x+1
var myf : fptr = f
echo myf(0)
Note that you can omit the type in the myf
variable declaration. You can also omit the brackets around the proc type definition. I've reported the error you found to the developers at https://github.com/Araq/Nimrod/issues/1183.