SVN tips in wranglers.pod

2006-11-07 Thread Paul Cochrane

Hi all,

In the attached patch, I've added a section on SVN usage tips for the
doc/dev/wranglers.pod documentation, mostly distilled from wisdom on
#parrot.  Is there anything else people think should be added before I
commit the patch?  Or any changes to the pod itself?

Comments definitely welcome,

Paul


wranglers_pod.patch
Description: Binary data


Re: [perl #40626] [BUG] :vtable fails for subclasses of core classes

2006-11-07 Thread Patrick R. Michaud
On Wed, Nov 01, 2006 at 05:53:24PM -0800, Jonathan Worthington via RT wrote:
 (sorry for empty reply earlier)
 
 Patrick R.Michaud (via RT) wrote:
  The new :vtable pragma doesn't seem to work when used on methods
  of subclasses of core classes.  Here's a quick sample
  (I'm also adding this test to t/pmc/parrotobject.t):
 
  snip

 Thanks for the good test case, which has enabled me to get a fix to this 
 bug. :-)

Excellent!  Now could you get it to work in .pbc files as well?  ;-)

(You may have already addressed this in other threads regarding saved
properties of subroutines, I just wanted to provide another test case
to show the current item I'm blocking on.)

$ cat vt.pir
.sub main :main
$P99 = subclass 'Hash', 'Foo'
$P99 = subclass 'Hash', 'Bar'

$P1 = new 'Foo'
$S1 = $P1
say $S1

$P1 = new 'Bar'
$S1 = $P1
say $S1

.end

.namespace [ 'Foo' ]

.sub '__get_string' :method
.return('Hello world')
.end


.namespace [ 'Bar' ]

.sub 'get_string' :method :vtable
.return('Hello world')
.end

$ ./parrot vt.pir
Hello world
Hello world
$ ./parrot -o vt.pbc --output-pbc vt.pir
$ ./parrot vt.pbc
Hello world
Hash[0x7e6be0]
$

Thanks!

Pm


Re: SVN tips in wranglers.pod

2006-11-07 Thread Bernhard Schmalhofer

Paul Cochrane schrieb:

In the attached patch, I've added a section on SVN usage tips for the
doc/dev/wranglers.pod documentation, mostly distilled from wisdom on
#parrot.  Is there anything else people think should be added before I
commit the patch?  Or any changes to the pod itself?

When the commit is associated with a ticket in RT, I usually copypaste the
ticket header. e.g.

 #39197: [CAGE] lib/Parrot/Test.pm ignores core dumps failures!CU,

 Bernhard



Re: SVN tips in wranglers.pod

2006-11-07 Thread Paul Cochrane

Thanks Bernhard!  Added to the list.

Paul


When the commit is associated with a ticket in RT, I usually copypaste the
ticket header. e.g.

  #39197: [CAGE] lib/Parrot/Test.pm ignores core dumps failures!CU,

  Bernhard




[perl #40698] [TODO] Tcl - implement src/builtin/exec.pir

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40698]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40698 


The file languages/tcl/src/builtin/exec.pir is only a stub
implementation; it needs implementing.

This ticket is in response to cage task #39704.


[perl #40699] [TODO] Tcl - src/builtin/lsearch.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40699]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40699 


The file languages/tcl/src/builtin/search.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40700] [TODO] Tcl - src/builtin/auto_execok.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40700]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40700 


The file languages/tcl/src/builtin/auto_execok.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40703] [TODO] Tcl - src/builtin/trace.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40703]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40703 


The file languages/tcl/src/builtin/trace.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40704] [TODO] Tcl - src/builtin/fconfigure.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40704]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40704 


The file languages/tcl/src/builtin/fconfigure.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40705] [TODO] Tcl - src/builtin/update.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40705]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40705 


The file languages/tcl/src/builtin/update.pir is only a stub
implementation; it needs implementing.

This ticket is in response to cage task #39704.


[perl #40701] [TODO] Tcl - src/builtin/interp.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40701]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40701 


The file languages/tcl/src/builtin/interp.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40707] [TODO] Tcl - src/builtin/package.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40707]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40707 


The file languages/tcl/src/builtin/package.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40702] [TODO] Tcl - src/builtin/glob.pir needs implementing.

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40702]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40702 


The file languages/tcl/src/builtin/glob.pir is only a stub
implementation; it needs implementing.

This ticket is in response to cage task #39704.


[perl #40706] [TODO] Tcl - src/builtin/close.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40706]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40706 


The file languages/tcl/src/builtin/close.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[perl #40709] [TODO] - Tcl vim src/builtin/auto_load.pir needs implementing

2006-11-07 Thread via RT
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #40709]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40709 


The file languages/tcl/src/builtin/auto_load.pir is only a stub
implementation; it needs implementing properly.

This ticket is in response to cage task #39704.


[svn:parrot-pdd] r15210 - trunk/docs/pdds/clip

2006-11-07 Thread allison
Author: allison
Date: Tue Nov  7 22:15:36 2006
New Revision: 15210

Modified:
   trunk/docs/pdds/clip/pdd13_bytecode.pod

Log:
[pdd]: Review of Bytecode PDD before blessing it.


Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod
==
--- trunk/docs/pdds/clip/pdd13_bytecode.pod (original)
+++ trunk/docs/pdds/clip/pdd13_bytecode.pod Tue Nov  7 22:15:36 2006
@@ -224,7 +224,7 @@
 greatest compatibility with previous Parrots.
 
 These versions will be listed in the PBC_COMPAT file, sorted with the latest
-version first. in the format:
+version first in the format:
 
 MAJOR.MINOR DATE DESCRIPTION
 
@@ -524,6 +524,8 @@
 annotations, so they will not spill over between source files; it also
 allows for faster lookup of annotations).
 
+{{ TODO: Does it clear all annotations, or all annotation groups? }}
+
 =item A list of indexes into the bytecode stream and key/value pairings (for
 example, starting at instruction 235, the annotation line has value 42).
 
@@ -556,7 +558,7 @@
   ++++
 
 The annotation groups table comes next. This starts with a single integer to
-specify the numbe of entries in the table.
+specify the number of entries in the table.
 
   ++++
   | Offset | Length | Description|
@@ -673,8 +675,12 @@
 will provide a programatic way to construct and walk packfiles, both for the
 Parrot internals and from programs running on the Parrot VM.
 
-{{ QUESTION: Will the CStruct PMC make it into Parrot? If so, we may want to
-change the interface of these PMCs to take advantage of it. }}
+{{ TODO... QUESTION: Will the CStruct PMC make it into Parrot? If so, we
+may want to change the interface of these PMCs to take advantage of it. 
+ANSWER: Yes it will (most likely with a different name), but it needs to
+be prototyped first. Do you want to hold off on implementing the
+bytecode changes until it's available? I say go ahead and implement now,
+then revise when the new PMC is available. }}
 
 
 =head3 Packfile.pmc


[svn:parrot-pdd] r15211 - trunk/docs/pdds/clip

2006-11-07 Thread allison
Author: allison
Date: Tue Nov  7 22:18:05 2006
New Revision: 15211

Modified:
   trunk/docs/pdds/clip/pdd15_objects.pod

Log:
[pdd]: Question extracted from the mailing list.


Modified: trunk/docs/pdds/clip/pdd15_objects.pod
==
--- trunk/docs/pdds/clip/pdd15_objects.pod  (original)
+++ trunk/docs/pdds/clip/pdd15_objects.pod  Tue Nov  7 22:18:05 2006
@@ -145,6 +145,10 @@
 Perl 6: Delegation support is highly flexible, even allowing a regex to match
 method names that should be delegated to a particular object. 
 
+=head1 QUESTIONS
+
+Should we have a super or next opcode?
+
 =head1 ABSTRACT
 
 This PDD describes the semantics of Parrot's object and class systems. The PDD


[svn:parrot-pdd] r15212 - in trunk/docs/pdds: . clip

2006-11-07 Thread allison
Author: allison
Date: Tue Nov  7 22:21:29 2006
New Revision: 15212

Added:
   trunk/docs/pdds/pdd13_bytecode.pod
  - copied unchanged from r15210, /trunk/docs/pdds/clip/pdd13_bytecode.pod
Removed:
   trunk/docs/pdds/clip/pdd13_bytecode.pod

Log:
[pdd]: Blessing the Bytecode PDD by moving it into the canonical
directory. It has a few remaining TODOs, to be addressed at the
hackathon.