Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

logical VTABLES are gone, see http://trac.parrot.org/parrot/changeset…

  • Loading branch information...
commit 0108744fd409a6e147c0e9643cb130aefa8e8de4 1 parent 50bc750
@fperrad authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 dynext/pmc/luaany.pmc
View
12 dynext/pmc/luaany.pmc
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2006-2009, Parrot Foundation.
+Copyright (C) 2006-2010, Parrot Foundation.
$Id$
=head1 Lua abstract base class
@@ -237,18 +237,16 @@ Throws an exception.
/*
-=item C<PMC* logical_not(PMC *dest)>
+=item C<void set_bool(INTVAL value)>
Common implementation
=cut
*/
- VTABLE PMC* logical_not(PMC *dest) {
- const INTVAL result = ! SELF.get_bool();
- dest = Parrot_pmc_new(INTERP, dynpmc_LuaBoolean);
- VTABLE_set_bool(INTERP, dest, result);
- return dest;
+ VTABLE void set_bool(INTVAL value) {
+ Parrot_pmc_reuse(INTERP, SELF, dynpmc_LuaBoolean, 0);
+ SELF.set_bool(value);
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.