[svn:parrot] r40044 - branches/ops_pct/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Mon Jul 13 10:03:03 UTC 2009


Author: bacek
Date: Mon Jul 13 10:03:00 2009
New Revision: 40044
URL: https://trac.parrot.org/parrot/changeset/40044

Log:
[pmc] Implement FSA.get_number.

Modified:
   branches/ops_pct/src/pmc/fixedstringarray.pmc

Modified: branches/ops_pct/src/pmc/fixedstringarray.pmc
==============================================================================
--- branches/ops_pct/src/pmc/fixedstringarray.pmc	Mon Jul 13 02:11:02 2009	(r40043)
+++ branches/ops_pct/src/pmc/fixedstringarray.pmc	Mon Jul 13 10:03:00 2009	(r40044)
@@ -201,6 +201,21 @@
         return SELF.elements();
     }
 
+/*
+
+=item C<FLOATVAL get_number()>
+
+Returns the number of elements in the array.
+
+=cut
+
+*/
+
+    VTABLE FLOATVAL get_number() {
+        const INTVAL e = SELF.elements();
+        return (FLOATVAL)e;
+    }
+
 
 /*
 


More information about the parrot-commits mailing list