Nested function: Difference between revisions

Content added Content deleted
(Add Cowgol)
m (→‎{{header|Phix}}: note re errors by 1.0.3)
Line 1,062: Line 1,062:
but must pass in everything you need explicitly, and anything you need to update must be a reference type, which
but must pass in everything you need explicitly, and anything you need to update must be a reference type, which
is only dictionaries and class instances, not integers, atoms, sequences, strings, or any user-defined types, as
is only dictionaries and class instances, not integers, atoms, sequences, strings, or any user-defined types, as
they are all effectively read-only. Also note that the compiler will not (as yet) issue any proper errors or
they are all effectively read-only. The proper errors should you wrongly refer to container identifiers will be
warnings should you break that restriction, instead it simply won't work as hoped for.
issued in 1.0.3 and later, prior to that it simply won't work as hoped for.
=== using a dictionary ===
=== using a dictionary ===
<lang Phix>function MakeList(string sep=". ")
<lang Phix>function MakeList(string sep=". ")