develooper Front page | perl.perl6.internals | Postings from October 2002

Re: Draft sketch of bytecode generation

Thread Previous | Thread Next
October 29, 2002 09:53
Re: Draft sketch of bytecode generation
Message ID:
On Monday 28 October 2002 13:02, Dan Sugalski wrote:

> At 1:08 PM -0800 10/27/02, chromatic wrote:

> >Is there an underlying function used to add arbitrary (Unicode text)
> > metadata to the bytecode?

> Arbitrary metadata? Nope, no plans for that. While I can see it as a
> useful thing (though it wouldn't be unicode, at least unicode
> wouldn't be required) I'm not sure it's worth the time to define,
> implement, and maintain.

> On the other hand, if someone has a good proposal, clean API, and
> generally feels strongly about it I certainly won't have any
> objections.

I'd really like to be able to save comments from source files as metadata.  
This has at least two potential benefits.  First, it makes it much easier to 
recreate the whole file from bytecode (especially refactored bytecode).  
Second, it makes it possible to pull out method documentation in the 
Smalltalk or Python sense.

Maybe metadata's not the place for this, but it seems rather natural to me.

-- c

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About