gin
the adventure? Specifically, how it should be organized, among other
things.
Thanks :),
Matt Creenan
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
I sent this to BÁRTHÁZI only instead of BÁRTHÁZI and the list as well. So
here's a forward of what I sent and he replied to.
--- Forwarded message ---
From: Matt <[EMAIL PROTECTED]>
To: "BÁRTHÁZI András" <[EMAIL PROTECTED]>
Cc:
Subject: Re: embedding langua
On Wed, 20 Apr 2005 14:13:42 -0400, Larry Wall <[EMAIL PROTECTED]> wrote:
Heredocs are variants on q:to these days, but if you're going
to be mixing Perl and SQL syntax, it's probably better to dispense
with the heredoc and just have a language variant so that you can
parse it at compile time. A h
On Sat, 23 Apr 2005 07:25:10 -0400, Juerd <[EMAIL PROTECTED]> wrote:
Matt skribis 2005-04-22 21:55 (-0400):
What about . for each level up you want to go?
instead of 1.say, 2.say, 3.say
you use .say, ..say, ...say
(Ok, I'm just kidding.. really!)
I read your message after I suggest
On Fri, 22 Apr 2005 14:24:25 -0400, Juerd <[EMAIL PROTECTED]> wrote:
Because a URI scheme ends in :. It http: followed by anything other than
// should fail because it is invalid, not fall back to file handling.
IFF you're handling URIs.
multi sub open ($u of Str where /^mailto:\/\//, [EMAI
On Fri, 22 Apr 2005 21:31:03 -0400, Larry Wall <[EMAIL PROTECTED]> wrote:
given open 'mailto:[EMAIL PROTECTED]' {
^say(...);
^close or fail;
}
That almost makes sense, given that $^a is like $_. It also points
vaguely
upward toward some antecedent. I could maybe get used
On Fri, 22 Apr 2005 15:09:21 -0400, Juerd <[EMAIL PROTECTED]> wrote:
Matt skribis 2005-04-22 14:44 (-0400):
mailto isn't something you can "open" really, for read at least.
No, but writing to it ought to simplify things :)
given open 'mailto:[EMAIL PROTEC
On Fri, 22 Apr 2005 11:42:10 -0400, Larry Wall <[EMAIL PROTECTED]> wrote:
You speak of "open" as if it must be a single function. We're now
living in the age of MMD, so what you're asking for is a no-brainer.
If we decided to we could even do MMD with constraints:
multi sub open ($u of Str whe
On Wed, 27 Apr 2005 03:32:12 -0400, Autrijus Tang <[EMAIL PROTECTED]>
wrote:
3. Labels applies to blocks, not statements
Instead of this:
LABEL:
say "Hello!"
say "Hi!"
One has to write this (essentially creating named blocks):
LABEL: {
say "Hello!"
say "Hi!
I was thinking along the lines of...
String $foo = "hello";
$foo.scramble!
print "$foo\n";
$foo = "hello"
print $foo.scramble ~ "\n";
print $foo;
OUTPUT (or close):
elhlo
hloel
hello
Also, along these same things.. is there a way to apply a method to all
variables/objects of a certain type (e.g.
Please bare with me, I do follow this list, but sporadically.
What it all boils down to, obviously, is that we, as lazy programmers, want
to have to type less, but still leave the code make sense when read. So to
me, that should automatically throw out stuff such as C<$x = ( $foo § .a +
.b + .c )
> What about leaving the flora aund fauna and using a name
> like they call ships?
> They always got names of females or towns...
>
> I suggest:
>
> PISA
>
Um... that sounds perilously close to "Piece Of". Am I alone on this one?
____
Has anyone suggested "Oyster", or is that too obvious?
__
Matt Youell - "Think different, just like everyone else."
[EMAIL PROTECTED] http://www.youell.com/matt/
arily a string or a number. And what if I want to
treat a string-ifiable object as an untyped value? Is my var then "$
worthy"?
- Matt
Perl.
I abhor Hungarian notation. It's the dark side of Lazy. And chances are that
if you actually *need* it, your code needs some serious factoring, IMHO.
> My primary concern in this area is the introduction of forced verbosity.
Typing is good for you. It builds strong bodies 8 ways.
- Matt
Forgive my woeful ignorance Could someone define "data aggregation by
inheritance"? From John's original mention I thought this was some oblique
MI thing, but now it's sounding like a constructor bubbling scheme, like in
C++, etc.
Thanks!
____
with something simple, like saying all classes have an implicit
new() method that is overloadable? Is this really *that* complicated? Maybe
I'm not getting the Big Picture.
matt youell
http://www.youell.com/matt/
"think different - just like everyone else"
ass::Struct rules, or some other
> more elaborate alternative.
Ah, yes. I've had to deal with that problem several times in the past. The
terminology was new to me, however.
Has there been a proposed solution?
Thanks,
- Matt
estering sin?
> But would the game be worth the candle?
As a rule, I try not to play games involving candles or other flammables.
;-)
- Matt
less obscure example.
> I think a type hierarchy makes much more sense than unleashing the hell
> of templates on Perl.
Perl was born in downtown Hell! Bring it on...
- Matt
has the additional benefit of making the client code
> self-documenting.
Another option is to explicitly cast it as follows:
uint foo = (uint)(-1);
The last set of parens is unecessary, but I like them. This also
makes it fairly clear that you are doing something odd.
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
s case since the previous atom has
> no backtracking associated with it already (a '\d' matches a single
> digit or fails), so the ':' is effectively a no-op. In fact,
> in PGE '\d' and '\d:' generate exactly the same code.
While that is true for the ru
Larry~
On 11/8/05, Larry Wall <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 08, 2005 at 10:55:05AM -0500, Matt Fowles wrote:
> : Patrick~
> :
> : On 11/8/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
> : > On Tue, Nov 08, 2005 at 12:57:18PM +, [EMAIL PROTEC
Will~
On 11/9/05, Will Coleda <[EMAIL PROTECTED]> wrote:
> - Updated the "Where we are" section.
>From this section: "check out This week on Perl 6 by Matt Fowles,"
that should also say "and Piers Cawley".
Thanks for keeping the website pretty, it is our public face.
Matt
Perl 6 Summary for 2005-11-14 through 2005-11-21
All~
Welcome to another Perl 6 Summary. The attentive among you may notice
that this one is on time. I am not sure how that happened, but we will
try and keep it up. On a complete side note, I think there should be a
Perl guild o
should be pretty straightforward to implement (assuming we have access
to the caller's lex pad for [upvar]). But I assume that that's why
things are implemented as they are.
--
matt diephouse
http://matt.diephouse.com
in Perl 6, XOR is spelled +^ or ~^, and ^ is Junctive one().
> So it seems that ^$x should be one($x). But that's an entirely
> useless, trivial junction, so it makes sense to steal the syntax for
> something else.
I think using C< ..5 > to mean (0, 1, 2, 3, 4) would be a more
Larry~
On 11/23/05, Larry Wall <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 23, 2005 at 11:55:35AM -0500, Matt Fowles wrote:
> : I think using C< ..5 > to mean (0, 1, 2, 3, 4) would be a more
> : sensible option. Makes sense to me at least.
>
> That does
Matt Diephouse <[EMAIL PROTECTED]> wrote:
> I don't think it is, no. ParTcl implements global/lexical storage
> rather naively at the moment (because I didn't understand that the lex
> opcodes worked this way when I implemented this over the summer).
> Right now we al
s a compiler writer, I see it as a
core feature. I always seem to forget that there are docs in
imcc/docs/ and end up grepping through docs/ instead (missing valuable
information).
--
matt diephouse
http://matt.diephouse.com
`P0 = ...` is the same thing as `assign P0, ...`?
Or, perhaps more accurately, `P1 := ...\n assign P0, P1`?
--
matt diephouse
http://matt.diephouse.com
Chip Salzenberg <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 29, 2005 at 03:25:13PM -0500, Matt Diephouse wrote:
> > Or, perhaps more accurately, `P1 := ...\n assign P0, P1`?
>
> No, PIR doesn't do that kind of thing (allocating P registers) behind
> your back. If a seque
= ... # assignment: modifies I0
>
>N0 := ... # ILLEGAL
>N0 = ... # assignment: modifies N0
>
> Comments? Fresh or rotten vegetables?
I very much like it. I think I may have suggested something like it
earlier (although I might have only thought it). But, I am
start writing weekly
summaries until you send me an email saying you are ready to resume.
Don't hurry on my account; I know moving is a pain.
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
After many months and lots of work, I'm happy to present you with the
latest namespace spec draft. Comments are most welcome: to quote Chip,
"The rest of the discussion would benefit from more eyes."
Thanks,
--
matt diephouse
http://matt.diephouse.com
Synopsis
- Languages
jerry gay <[EMAIL PROTECTED]> wrote:
> On 12/1/05, Matt Diephouse <[EMAIL PROTECTED]> wrote:
> > User Defined Namespaces
> > All HLLs should prefix any namespaces with the lowercased name of
> > the HLL (so there's no question of what to ca
Leopold Toetsch <[EMAIL PROTECTED]> wrote:
>
> On Dec 2, 2005, at 7:31, Matt Diephouse wrote:
>
> [ Just a few notes, more to come. I've to read it some more times. ]
>
> > Naming Conventions
>
> > HLL Private Namespaces
> > HLLs sh
e others to be all-lowercase too.
I was advocating having (2) and (3) be all-lowercase. I'm not sure
which are necessarily the same.
> 5. THE FINAL EXAMPLE
>
> In the final example, what is the purpose of this line:
>
>add_namespace ["perl5"; "Some"; "Module"], $P1
>
> As far as I can tell, the intent of the following line is to import
> tcl:Some::Module 'w*' into the _current_ perl namespace, not into
> ["perl5"; "Some"; "Module"]. Am I missing the point here?
No, I meant to take that line out but I forgot.
Thanks, Roger. Your email was helpful.
--
matt diephouse
http://matt.diephouse.com
rivate stuff. In that case, the HLL is responsible
> for keeping its own private stuff private, and there is no need for the
> spec to refer to unenforced private namespaces.
I don't think you'll really be interested in importing the guts of the
Tcl compiler into your program. But if that's what you really want,
I'm not going to stop you. (And neither should Parrot.)
--
matt diephouse
http://matt.diephouse.com
m missing the point, but I see these being used in the
> implementation of "import_into" as a way for the source HLL to tell the
> target HLL whether to treat each name as a sub, namespace, variable or
> method.
Yes, that's correct.
--
matt diephouse
http://matt.diephouse.com
Leo~
On 12/4/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
>
> On Dec 4, 2005, at 5:57, Matt Diephouse wrote:
>
> > Roger Browne <[EMAIL PROTECTED]> wrote:
> >> Leopold Toetsch wrote:
> >>
> >>>> add_sub($S0, $P0)
> >>&
ent matter. Python's function
may be variables, but Python still knows that they're functions. So
Python can use add_sub to add the function to Tcl's namespace. This is
both useful and necessary because function and variable names don't
overlap in Tcl.
> What am I missing?
I hope this clears things up a bit.
--
matt diephouse
http://matt.diephouse.com
Perl 6 Summary for 2005-12-05 through 2005-12-12
All~
Welcome to another Perl 6 summary. This week, like last, Parrot has
produced the highest volume of emails. Fine by me, Parrot tends to be
easiest to summarize. This summary is brought to you by Snow (the latest
soft toy in t
dies with this error:
MMD function __i_multiply not foundfor types (1, -100)
--
matt diephouse
http://matt.diephouse.com
assignment fails with a "Null PMC access" error.
So what am I supposed to do? It appears that using `null` to mark
deleted/undefined variables won't work. But it's not clear to me that
using a Null PMC is a good idea (then we must perform `'isa` tests on
every read to see if that variable is undefined, which seems like it
would be expensive).
So what's the "correct" way to do this?
--
matt diephouse
http://matt.diephouse.com
Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> Matt Diephouse wrote:
>
> > $alias = undef
> >
> > translates to
> >
> > null $P1
> > $P2 = getinterp
> > $P2 = $P2["lexpad"; 1]
> > $P2['$alias'] = $P1
>
>
All~
Fear not this weeks summary will come out... just a bit late. I have
it half written, but my bed is calling oh so sweetly.
Night all,
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
Perl 6 Summary for 2006-01-02 though 2006-01-09
All~
Welcome to another Perl 6 Summary. On a complete tangent, if you are
playing World of Warcraft and see a troll hunter named Krynna, she
rocks. She royally saved me. Be nice to her.
Perl 6 Compiler
PIL Containers and Roles
I had to test it anyway to prove that this is the case).
>
> Thanks, applied - r11199
Why leave it in as a placeholder at all?
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
ined behavior.
Could you provide a concrete example of the advantage of this approach
please? Failing that can you try and expand on your gut feeling a
bit?
Thanks,
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
nd this currently doesn't work, as mentioned above. (According to the
> PDD on keys, it should be possible to do this:
>
> op arg, P1[12.34] # Constant number key - handled as constant key
I am not sure how wise an idea this is given the difficult of
comparing floating p
patch schedule.
If this change bothers any one horribly, I invite you to leave the
tuesday summaries unread for 6 days, thereby returning you to a monday
schedule. ;-)
Have fun,
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle,
on't have any comments here. If this can't be made to work, the
other option is to use an array of strings.
> *)export_to($P0, ...)
>
> Besides the va_list syntax the wild card support $P1.export_to($P0,
> 'w*') seems to belong into the HLL. OTO
Chip Salzenberg <[EMAIL PROTECTED]> wrote:
> Say, that gives me an idea. Python-like untyped namespaces are a
> significant subpopulation.
>
> Matt: How about a standard namespace method:
>
> INTVAL is_typed()
>
> which returns false for the simple Python-li
ixote...
Perl 6 Compiler
Either this list followed its typical pattern of doing most of its work
off list, or google's indexing of it broke. I am guess the former and
continuing on blindly.
Perl 6 Internals
Unescapable Single Quotes in Strings
Matt Diephouse discovered tha
, I'd consider adding another opcode:
$P1 = get_namespace # this exists - get the current namespace
$P2 = get_namespace $P1, ["Foo"; "Bar"] # this doesn't - lookup
Foo::Bar in $P1 (the current namespace)
--
matt diephouse
http://matt.diephouse.com
.".
Perhaps, I am just too firmly rooted in old paradigms but I think it
is very important not to conflate the representation of a thing with
the thing.
http://en.wikipedia.org/wiki/Image:MagrittePipe.jpg
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
grammatically. What I don't really understand is what
exactly Pipe is and where it would be useful.
They way you have described Pipe feels a little muddy to me and I am
unsure about its purpose and semantics. Is it just an object I ask
`.can()` or does it have some deeper usefulness?
Matt
--
Stevan~
I am going to assume that you intended to reply to perl 6 language,
and thus will include your post in its entirety in my response.
On 2/7/06, Stevan Little <[EMAIL PROTECTED]> wrote:
> On 2/7/06, Matt Fowles <[EMAIL PROTECTED]> wrote:
> > Larry~
> >
> &
<http://xrl.us/jwuc>
Macros
Herbert Snorrason wants more specifics on macros in Perl 6. Larry gave
him some.
<http://xrl.us/jwud>
Synopsis Typos
Yiyi Hu and Andrew Savige found a few typos in a few synopses. Larry
graciously fixed them.
<http://
fact( Int $n ) { return $n * fact($n-1); }
Why not have class methods take the form
class Foo {
method foo (Class Foo) {
say "I am a class method, and proud of it";
}
}
They are still well types (I think), and properly restricts the types
allowed for foo. After all Foo is just a specific instance of the
class Class.
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
ll
> have forgotten all about class Class.
>
> 1 ... 2 ... 3 ... *snap*
... What!?!? Where was I? Oh, yeah. As I was saying, I think we
just take C++'s object system exactly.
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
1
real0m3.502s
user0m3.477s
sys 0m0.021s
GCC 4.0: time ./ack 11
Ack(3,11): 16381
real0m1.960s
user0m1.948s
sys 0m0.003s
I didn't use the custom PIR he posted (which is faster), so Parrot
didn't beat the GCC code.
--
matt diephouse
http://matt.diephouse.com
via RT Brad Bowman <[EMAIL PROTECTED]> wrote:
> The patch turns the mix of 4-tabs, 8-tabs and spaces in
> nativecall.pl into just spaces. Only whitespace changes.
Applied, thanks.
--
matt diephouse
http://matt.diephouse.com
ust to make a patch.
> >
> > Only if you're checking out to a Commodore 64.
>
> Or possibly hand-transcribing the bits.
I could check it out over iridium dial up...
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
Andy~
On 2/17/06, Andy Dougherty <[EMAIL PROTECTED]> wrote:
> On Fri, 17 Feb 2006, Matt Fowles wrote:
>
> > All~
> >
> > On 2/17/06, jesse <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > On Fri, Feb 17, 2006 at 08:38:26AM
need string. PMC you probably want, since
there are boolean PMCs and what not. Float I am not sure of.
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
.foo()> was a method call on C<$a>.
Thanks,
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
Larry~
On 4/6/06, Larry Wall <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 06, 2006 at 01:58:55PM -0400, Matt Fowles wrote:
> : All~
> :
> : I just noticed something claiming that C<$a. foo()> is actually
> : C<$a.foo()> (a method call on C<$a>) and that C
ed for anything besides a
proof-of-concept. The only argument I can see for keeping them there
is that they're compiled by default, so the build breaks if they do.
And that's *my* 2¢. :-)
--
matt diephouse
http://matt.diephouse.com
-sanity/01-tap.t
> line 1.
>
> (pugs isn't in any path on both machines)
> This make all tests failing.
On 10.4.6 (Intel) I get:
languages/perl6 mdiep$ perl t/harness t/01-sanity/01-tap.t
t/01-sanity/01-tapok
2/10 skipped: various reasons
languages/perl6 mdiep$ pugs
-bash: pugs: command not found
--
matt diephouse
http://matt.diephouse.com
bly modified
> after being freed, break at szone_error to debug
> # hash_6(4373,0xa000ed98) malloc: *** set a breakpoint in szone_error
> to debug
> # '
> # expected: '42
The test passes for me on 10.4.6 Intel.
--
matt diephouse
http://matt.diephouse.com
only one getting them.
>
> The iterator failures are odd. some of the tests just... stop
> iterating before they should:
>
> # Failed test (t/pmc/iterator.t at line 1019)
> # got: '10
> # 20
> # 30
> # ok
> # '
> # expected: '10
>
Will Coleda <[EMAIL PROTECTED]> wrote:
> I'm using gcc 4.0.1, an '--optimized' Configure, and perl 5.8.6
Ahh. When I do an '--optimized' Configure, I get a bunch of failed
tests. The hash tests are still passing, but that may be coincidental.
--
matt diephouse
http://matt.diephouse.com
interested parties
may want to coordinate with him.
Best of luck,
Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary
g, then you can write your multis for
Integer and String (as chromatic did) and be done with it.
--
matt diephouse
http://matt.diephouse.com
Its author is no longer involved with Parrot. It's doubtful
that what's here would be of any use to anyone now.
If no one has any objections, I'll remove these towards the end of the
week or during the weekend.
--
matt diephouse
http://matt.diephouse.com
to build on Cygwin when build_dir
contains spaces.
How well does this play on other platforms?
Works on OS X. Applied in r12755.
Thanks,
--
Matt Diephouse
http://matt.diephouse.com
Matt Diephouse <[EMAIL PROTECTED]> wrote:
If no one has any objections, I'll remove these towards the end of the
week or during the weekend.
This is done as of r12807.
--
matt diephouse
http://matt.diephouse.com
Iraq invasion indeed wait, shouldn't go there.
I particularly like the syntax of Textile or even Markdown (preferring
the former). In Ruby-land, these exist as RedCloth and BlueCloth. I
understand porting isn't fun, but I think that this is a viable
option, if not a great choice.
Not that th
There are alternatives to using tables for side-by-side using
paragraphs. Simply having one cell for each line, for instance, allows
for highlighting green the added lines and red the removed ones, etc.
Also realize that it is not necessarily the duty of Textile (et al) to
handle that aspect beyo
I also agree that Object Oriented Design would work wonderfully well
here. The key here is prototyping its shape and then filling in the
details once it has taken this shape.
I like the term 'messages' for methods because it reminds me that the
objects must send requests, forms of communication,
Juerd,
My mistake: I misunderstood what you were saying (probably due to haste).
But really, then, there are alternatives to using tables, such as
DIVs, as well as simply modifying the parsing step to also parse for
this special case in addition to Textile or what-have-you.
I guess if I said an
I would recommend using a templating system as opposed to having calls
to include files in numerous pages. Even though it's minimal, it's
still duplication, and it can get rather messy.
I know that some people don't know about or don't like it, but I would
recommend setting things up in a Model-V
I was just reading the AES referenced above and I can say now that I'm
really happy about some changes to Regexes, and that a grammar may
well be what we're looking for. However, even with this great tool, we
still have to handle the implementation. Though I can see the benefit
of using the gramma
Honestly, I'm not familiar with the Perl way of doing things, but I'm
open to learn especially because I see the Perl community going
through a (much-needed) reform. Thusly, I'm not familiar with the RFCs
(Request For Change?) but I do see the merit for something similar.
However, as far as the j
[Sorry Michael, I didn't mean to send it you twice. :) ]
I like the RFC idea. I will read up on them and see, if it is a
particular format, how to simplify it. But, most definitely, the
community must have dialog about the requests. For each request
really.
On the architecture note, I've written
1) Understood. I've been disconnected from Perl for a while, and this
is really the first time I've been participating in the Perl
community. Thanks for the heads-up. :)
2) I agree that it is both important and pertinent to get the general
requirements down for the project, but I do see a need an
I'll be honest and say that I'm not too concerned with the
prize/grant, so that may be the reason I want to go beyond that
minimal ideal. I'm specifically concerned with a poorly designed (or
at least slightly clumsy to upgrade) wiki, all in for the sake of
speed, minimal functionality, and money.
I really like these. I think you're on to something. I'm definitely in
favor of Momi Wiki, or just Momi.
Maybe we can even be very corny and call it 'Aloha Wiki'... Hmm.
Yes, Bikini Wiki sounds sexy. I like how they both 'lie' in the
pacific ocean... as opposed to being worn... ;)
M.T.
A simple, if naive fix could be to make the logo a phonetic
representation (or whatever it's called). Just a simple
pseudo-solution.
M.T.
;;depth]
unless_null lexpad, got_lexpad
# try again
inc depth
goto get_lexpad
got_lexpad:
variable = lexpad[variable_name]
.return(variable)
.end
Of course, that doesn't mean that I wouldn't like an opcode to do it for me. :-)
--
matt diephouse
http://matt.diephouse.com
via RT Matt Diephouse <[EMAIL PROTECTED]> wrote:
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #39597]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=39597 >
The following code in line
x27;t add find_global variants
that lookup globals in HLL's? Right now we have find_global_p_p_s.
Adding find_global_p_s_p_s would let me reach into Tcl's private very
easily instead of having to crawl the namespaces myself.
$P0 = find_global '_tcl', ['Foo'; 'Bar'], "baz"
Thanks,
--
matt diephouse
http://matt.diephouse.com
Chip Salzenberg <[EMAIL PROTECTED]> wrote:
On Wed, Jun 28, 2006 at 11:40:28PM -0700, Matt Diephouse wrote:
> The get_namespace opcode gets namespaces from the root namespace.
> Should it get namespaces from the HLL namespace instead? The PDD isn't
> explicit either way [.
able to get a namespace at runtime... which translates to the easiest
way for Tcl to use namespaces.
--
matt diephouse
http://matt.diephouse.com
)
$S0 = join "::", $P0
print $S0
print "\n"
end
.end
mini:~/Projects/parrot mdiep$ parrot test.pir
parrot
mini:~/Projects/parrot mdiep$
--
matt diephouse
http://matt.diephouse.com
I'd
prefer to have C< .namespace [] > so that we could also have the
matching C< find_global [], 'foo' >. Otherwise find_global becomes a
two step operation for finding globals in the root HLL namespace.
Oh, and I've committed some more failing tests. :-)
--
matt diephouse
http://matt.diephouse.com
rst, I think C< [] > *is* a name.
Second, any solution which involves giving the HLL namespace a
different name will have to either (a) add new opcodes, (b) add more
code for all the other cases by making all referencing originate at
the root, or (c) add a special syntax, none of which is simple.
--
matt diephouse
http://matt.diephouse.com
icates that most of the code belongs in that namespace, so it's
> likely that most of the variables do too. (There are variations, but
> that's at least the common case.)
Works for me. And that is the current meaning of two-parameter find_global,
so it's not a stretch.
Works for me too. I'm not sure that I like the rename (I can't
decide), but the name itself doesn't matter much. The new opcodes (the
presence of get_cur_global) may actually make things easier for Tcl if
we ever compile to 100% inlined PIR.
This is a different route than I was trying to take us, but it should
be almost functionally equivalent, so I'm happy with it.
--
matt diephouse
http://matt.diephouse.com
1 - 100 of 558 matches
Mail list logo