Type detection: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
Antoni Gual (talk | contribs) |
||
Line 2,261: | Line 2,261: | ||
The type of [50, 34] is []int |
The type of [50, 34] is []int |
||
</pre> |
</pre> |
||
=={{header|VBScript}}== |
|||
<syntaxhighlight lang="vb"> |
|||
i = 1 |
|||
ii=0.23 |
|||
s = "Hello world" |
|||
a = split("Hello World"," ") |
|||
b=Array(i,ii,s,a) |
|||
Set c=CreateObject("Scripting.dictionary") |
|||
Class d |
|||
Private a,b |
|||
End Class |
|||
Set e=New d |
|||
WScript.Echo TypeName(b) |
|||
WScript.Echo TypeName(b(0)) |
|||
WScript.Echo TypeName(b(1)) |
|||
WScript.Echo TypeName(b(2)) |
|||
WScript.Echo TypeName(b(3)) |
|||
WScript.Echo TypeName(b(3)(0)) |
|||
WScript.Echo TypeName(c) |
|||
WScript.Echo TypeName(e) |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<small> |
|||
<pre> |
|||
Variant() |
|||
Integer |
|||
Double |
|||
String |
|||
Variant() |
|||
String |
|||
Dictionary |
|||
d |
|||
</pre> |
|||
</small> |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |