Function prototype: Difference between revisions

m
Line 618:
 
=={{header|Julia}}==
Julia does not need or use function prototypes in general. Generic functions are further specialized as to argument type and return type during just-in-time compilation if required. However, when interacting with other languages such a C which use function prototypes, Julia can protoypeprototype its functions for passing its fuctionsfunctions to extrenalexternal languages such as C with the @cfunction macro:
 
<lang julia>julia > function mycompare(a, b)::Cint
4,103

edits