Content deleted Content added
added to distinguish hatnote |
|||
Line 667:
[[VHDL]], being derived from Ada, also has generic abilities.<ref>https://www.ics.uci.edu/~jmoorkan/vhdlref/generics.html VHDL Reference</ref>
[[C (programming language)|C]]
<syntaxhighlight lang="c">
#define cbrt(x) _Generic((x), long double: cbrtl, \
default: cbrt, \
float: cbrtf)(x)</syntaxhighlight>
This feature gives c [[Function overloading]] capabilities, but is not related to to generic programming.
==See also==
|