Commit 99b497a
committed
Initial attack at basic 'class' feature
Adds a new experimental warning, feature, keywords and enough parsing to
implement basic classes with an empty `new` constructor method.
Inject a $self lexical into method bodies; populate it with the object instance, suitably shifted
Creates a new OP_METHSTART opcode to perform method setup
Define an aux flag to remark which stashes are classes
Basic implementation of fields.
Basic anonymous methods.1 parent b40895a commit 99b497a
File tree
47 files changed
+3719
-2020
lines changed- ext/Opcode
- lib
- B
- pod
- regen
- t
- class
- lib
- croak
- warnings
- op
- porting
- win32
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+3719
-2020
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
5638 | 5639 | | |
5639 | 5640 | | |
5640 | 5641 | | |
| 5642 | + | |
| 5643 | + | |
| 5644 | + | |
| 5645 | + | |
| 5646 | + | |
| 5647 | + | |
5641 | 5648 | | |
5642 | 5649 | | |
5643 | 5650 | | |
| |||
5721 | 5728 | | |
5722 | 5729 | | |
5723 | 5730 | | |
| 5731 | + | |
5724 | 5732 | | |
5725 | 5733 | | |
5726 | 5734 | | |
| |||
5787 | 5795 | | |
5788 | 5796 | | |
5789 | 5797 | | |
| 5798 | + | |
5790 | 5799 | | |
5791 | 5800 | | |
5792 | 5801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
0 commit comments