3 =head1 Deprecation in Parrot
5 This is a list of currently deprecated features of Parrot. Every deprecation
6 has an associated RT ticket. Each item indicates the last release it's
7 guaranteed to appear in. Items marked with a release of ??? are still
8 deprecated, but a firm deadline for their removal has not yet been established.
10 When deprecated items are removed, all usage of the feature in the
11 repository should be updated or removed; including documentation.
13 When deprecating opcodes, in addition to the ticket, be sure to mark the
14 opcode with the :deprecated flag; this will allow users to enable deprecation
15 warnings selectively with:
17 .include 'include/warnings.pasm'
18 warningson .PARROT_WARNINGS_DEPRECATED_FLAG
20 And then receive runtime warnings if they are using any deprecated opcodes.
21 The C<-w> command line option for parrot can also be used to enable all
28 =item * C<type_keyed> [post 0.5.2]
32 =item * C<type_keyed_int> [post 0.5.2]
36 =item * C<type_keyed_str> [post 0.5.2]
40 =item * C<type> [post 0.5.2]
44 =item * C<new_from_string> [post 0.5.0]
48 =item * C<cmodulus> and variants [post 0.7.0]
58 =item * C<pioctl> [post 0.5.1]
62 =item * C<store_global> [post 0.5.0]
64 See RT #48016. Replace usage with set_[hll,root]_global variants.
66 =item * C<find_global> [post 0.5.0]
68 See RT #48018. Replace usage with get_[hll,root]_global variants.
70 =item * C<new>(out PMC, in INT, in STR) [post 0.5.0]
74 =item * C<get_mro> [post 0.5.0]
78 =item * C<n_*> math opcode variants [post 0.7.1]
88 =item * Integer Type IDs [post 0.5.0]
90 See RT #48024. Instead of C<$P0 = new Integer> or C<$P0 = new .Integer>,
91 use the following syntax, which works for both PMCs and objects.
95 =item * PMC union struct [post 0.5.0]
97 See RT #48014. This will be removed once all core PMCs have been updated.
105 =item * old-style PASM registers [post 0.6.4]
107 Old-style PASM registers without the C<$> character are deprecated; use
108 PIR-style registers only.
112 =item * C<global> keyword [post 0.6.4]
117 =item * bare method names [post 0.6.4]
119 C<foo.bar()>, where C<bar> is not a local identifier (thus indicating
120 a method name) is no longer supported.
124 =item * C<#line> [post 0.6.4]
126 Will be replaced by C<.line> to be more consistent with other PIR syntax.
128 See [RT#45857], [RT#43269], and [RT#47141].
130 =item * C<.pragma n_operators> [post 0.6.4]
134 =item * C<<.namespace <identifier> >> syntax [post 0.5.1]
138 =item * Use of C<::> in identifiers [post 0.5.1]
142 =item * C<.namespace [ "a" .. "b" ]> [post 0.5.0]
146 =item * C<.namespace> (without brackets) [post 0.6.2]
148 All should C<.namespace> directives without brackets should take
149 empty brackets to indicate the root namespace.
152 =item * C<.HLL_map> <string> ',' <string> [post 0.6.4]
154 This will be replaced by C<.HLL_map> <string> '=' <string>
158 =item * C<.HLL> <string> ',' <string> [post 0.6.4]
160 This will be replaced by C<.HLL> <string>; the second string (and
161 comma to separate them) will no longer be accepted. Use C<.loadlib>
162 for specifying the library name.
166 =item * vtable name .constants and __vtable overrides [post 0.5.2]
170 =item * Assignment syntax with opcodes [post ???]
172 See RT #36283. When the first argument of an opcode is C<OUT>, then
173 the assignment syntax will be allowed, as it is today.
175 In any other case (i.e. C<INOUT>, C<IN>), this will become
176 a syntax error. For example:
179 $P0 = substr 1, 2, "x"
184 substr $P0, 1, 2, "x"
186 =item * mmdvtregister and mmdvtablefind opcodes [post 0.7.0]
188 These opcodes are part of the old MMD system, now deprecated and to be removed
189 when the branch is merged in after the release.
191 =item * C<addr> shortcut for C<set_addr> op [post 0.7.1]
193 The C<addr> shortcut that is mapped to the C<set_addr> will no longer be
194 supported. Instead, use the C<set_addr> directly.
200 =head1 Parrot Compiler tools
202 =head2 Capture-based objects
206 =item get_array, get_hash, get_scalar deprecations [post 0.6.2]
208 See RT#54000. The 'get_array', 'get_hash', and 'get_scalar'
209 methods are now called 'list', 'hash', and 'item' respectively.