Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Mon, 19 Apr 2004 14:35:26 -0400
Local: Mon, Apr 19 2004 2:35 pm
Subject: Re: PMC constants
At 4:39 PM +0200 4/16/04, Leopold Toetsch wrote:
>While trying to speed up hash lookups [1] I came (again) to the I'm all for constant PMCs--they've been in the base design since the >problem that we are missing true PMC constants. We just have a >special Sub PMC for storing subroutine entries but no general way to >represent a constant PMC item. E.g.: > .const pmc s = "value" >This would AFAIK not need a lot more opcode variants, because where beginning, and I'd love to get them in and running. The interpreter stuff's simple enough--we teach the ops preprocessor As for the actual declaration of the constants... That's going to be 1) we execute the initialization code at compiletime and freeze the result Both have their drawbacks when it comes to more complex PMCs. For --------------------------------------"it's like this"------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||