* lib/Parrot/Pmc2c/MethodEmitter.pm:
[parrot.git] / DEPRECATED.pod
blobc96a023e5ba4b0e59fefefcd33e1d2f4f594619a
1 # $Id$
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 =head1 vtable entries
15 =over 4
17 =item * C<get_attr> [post 0.5.2]
19 See RT #48583.
21 =item * C<set_attr> [post 0.5.2]
23 See RT #48585.
25 =item * C<type_keyed> [post 0.5.2]
27 See RT #48577.
29 =item * C<type_keyed_int> [post 0.5.2]
31 See RT #48579.
33 =item * C<type_keyed_str> [post 0.5.2]
35 See RT #48581.
37 =item * C<type> [post 0.5.2]
39 See RT #48567.
41 =item * C<new_from_string> [post 0.5.0]
43 See RT #47011.
45 =back
47 =head1 Opcodes
49 =over 4
51 =item * C<pioctl> [post 0.5.1]
53 See RT #48589.
55 =item * C<store_global> [post 0.5.0]
57 See RT #48016. Replace usage with set_[hll,root]_global variants.
59 =item * C<find_global> [post 0.5.0]
61 See RT #48018. Replace usage with get_[hll,root]_global variants.
63 =item * C<new>(out PMC, in INT, in STR) [post 0.5.0]
65 See RT #47011.
67 =item * C<getclass> [post 0.5.0]
69 See RT #47972. Future use should use the C<get_class> opcode.
71 =item * C<get_mro> [post 0.5.0]
73 See RT #47976.
75 =item * C<getfd> [post 0.5.1]
77 See RT #48310.
79 =back
81 =head1 Class Features
83 =over 4
85 =item * Integer Type IDs [post 0.5.0]
87 See RT #48024. Instead of C<$P0 = new Integer> or C<$P0 = new .Integer>,
88 use the following syntax, which works for both PMCs and objects.
90   $P0 = new 'Integer'
92 =item * PMC union struct [post 0.5.0]
94 See RT #48014. This will be removed once all core PMCs have been updated.
96 =back
98 =head1 Exceptions
100 =over 4
102 =item * Keyed access to exception attributes [post 0.5.1]
104 See RT #48012. Attributes on exception objects will no longer be accessible
105 by integer key, use C<getattribute> and C<setattribute> instead.
107 =item * 'push_exception' function [post 0.6.2]
109 Is deprecated, replaced by C<Parrot_cx_add_handler> (a method call to
110 C<add_handler> on the concurrency scheduler object).
112 =item * 'pop_exception' function [post 0.6.2]
114 Is deprecated, replaced by C<Parrot_cx_delete_handler_typed> (a method call to
115 C<delete_handler> on the concurrency scheduler object).
117 =item * 'count_exception_handlers' function [post 0.6.2]
119 Is deprecated, replaced by C<Parrot_cx_count_handlers_typed> (a method call to
120 C<count_handlers> on the concurrency scheduler object).
122 =item * 'get_exception_handler' function and 'get_eh' opcode [post 0.6.2]
124 Are deprecated, exception handler lookup by index is no longer supported.
126 =item * 'get_all_exception_handlers' function and 'get_all_eh' opcode [post 0.6.2]
128 Are deprecated, access to the exception handler list should be performed
129 through the concurrency scheduler.
131 =item * 'throwcc' opcode [post 0.6.2]
133 Is deprecated, replaced by the C<throw> opcode (the single argument form of
134 'throwcc' was already identical to 'throw').
136 =item * 'internal_exception' function [post 0.6.2]
138 Is deprecated, replaced by the C<exit_fatal> function.
140 =item * 'do_exception', 'do_str_exception', 'do_pmc_exception', 'create_exception' [post 0.6.2]
142 Are deprecated.
144 =item * 'handle_exception' [post 0.6.2]
146 Is deprecated, replaced by C<Parrot_ex_calc_handler_offset>.
148 =item * 'rethrow_exception', 'rethrow_c_exception' [post 0.6.2]
150 Are deprecated, replaced by C<Parrot_ex_rethrow_from_op> and
151 C<Parrot_ex_rethrow_from_c>.
153 =back
155 =head1 PIR syntax
157 =over 4
159 =item * C<<.namespace <identifier> >> syntax [post 0.5.1]
161 See RT #48737.
163 =item * Use of C<::> in identifiers [post 0.5.1]
165 See RT #48735.
167 =item * C<.namespace [ "a" .. "b" ]> [post 0.5.0]
169 See RT #46715.
171 =item * C<.namespace> (without brackets) [post 0.6.2]
173 All should C<.namespace> directives without brackets should take
174 empty brackets to indicate the root namespace.
175 See RT #48549.
177 =item * vtable name .constants and __vtable overrides [post 0.5.2]
179 See RT #48877.
181 =item * Assignment syntax with opcodes [post ???]
183 See RT #36283.  When the first argument of an opcode is C<OUT>, then
184 the assignment syntax will be allowed, as it is today.
186 In any other case (i.e. C<INOUT>, C<IN>), this will become
187 a syntax error. For example:
189     $S0 = print
190     $P0 = substr 1, 2, "x"
192 Will have to be:
194     print $S0
195     substr $P0, 1, 2, "x"
198 =back
200 =head1 Parrot Compiler tools
202 =head2 Capture-based objects
204 =over 4
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.
211 =back
213 =cut