Create an object/Native demonstration: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: future-proof for 5.36, explicit :prototype) |
(Dialects of BASIC moved to the BASIC section.) |
||
Line 10: | Line 10: | ||
If the language supports '''Magic Methods''', then show how these work. |
If the language supports '''Magic Methods''', then show how these work. |
||
=={{header| |
=={{header|BASIC}}== |
||
⚫ | |||
<syntaxhighlight lang="basic256">map mapa |
<syntaxhighlight lang="basic256">map mapa |
||
mapa["A"] = 65 |
mapa["A"] = 65 |
||
Line 27: | Line 28: | ||
C |
C |
||
67</pre> |
67</pre> |
||
==={{header|FreeBASIC}}=== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|C++}}== |
=={{header|C++}}== |
||
Line 194: | Line 216: | ||
55 |
55 |
||
["a":1, "b":66]</pre> |
["a":1, "b":66]</pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Go}}== |
=={{header|Go}}== |