Skip to content

Commit

Permalink
Move some more PIR into NQP [1]
Browse files Browse the repository at this point in the history
[1] Even though they're all written as pir::...
  • Loading branch information
coke committed Dec 13, 2009
1 parent aaf6aba commit 46f26de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions src/TclString.pm
@@ -1,5 +1,12 @@
# This class is currently created via PIR in src/class/tclstring.pir

INIT {
pir::getinterp__p().hll_map(
pir::get_class__ps('String'),
pir::get_class__ps('TclString')
)
}

module TclString {

method getInteger() { ## :is vtable
Expand Down
12 changes: 0 additions & 12 deletions src/class/tclstring.pir
Expand Up @@ -15,18 +15,6 @@ A Tcl-style string
tcl = subclass core, 'TclString'
.end


.sub 'mapping' :anon :init
.local pmc tcl
tcl = get_class 'TclString'
.local pmc interp
interp = getinterp

.local pmc core
core = get_class 'String'
interp.'hll_map'(core,tcl)
.end

.namespace [ 'TclString' ]
.sub get_bool :vtable
.tailcall self.'getBoolean'()
Expand Down

0 comments on commit 46f26de

Please sign in to comment.