Jump to content

Type detection: Difference between revisions

→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 2,240:
</pre>
 
=={{header|V (Vlang)}}==
<syntaxhighlight lang="v (vlang)">fn show_type<T>(a T) {
println('The type of $a is ${typeof(a).name}')
}
451

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.