Will Coleda wrote:
> 'pmclass' now takes two additional flags ...
> (Roger: you should steal this syntax for your Amber PMCs. =-)
Thanks Will. Consider it stolen!
I see that you only handle one 'maps' directive per PMC. I think some
PMCs will use more. Consider a HLL that doesn't have any specia
On Fri, Nov 18, 2005 at 10:23:24AM -0500, Will Coleda wrote:
> pmclass TclString extends TclObject extends String dynpmc group
> tcl_group hll Tcl maps String { ... }
Nice improvisation on an existing theme. One of these months I'll get
around to making op and pmc definitions less clunky. Mean
In trying to bring Tcl up to date with PDD20 and avoid the
deprecation of newsub, that led me to having to implement TclLexPad
(which would correspond to the new LexPad base type. The PDD says
this happens automatically, but:
Leo pointed out that while Tcl is using the '.HLL' directive, ...
Klaas-Jan Stol wrote:
1a: when are set_pointer and get_pointer actually called?
From pmc.c:pmc_new
1b: in set_pointer (I copied it from None.pmc) an assertion is done. Why
is this? (this is also part of question 1a: set_pointer is called once,
apparently?)
Well, it asserts that you really
Leopold Toetsch wrote:
Klaas-Jan Stol wrote:
mmm, I looked at classes/none.pmc, this is a copy/paste:
===
#include
static PMC * Py_None;
pmclass None singleton {
Ah, yep - None is a singleton too - sorry for my confusion.
So it should be rather easy to subclass None, impleme
Klaas-Jan Stol wrote:
mmm, I looked at classes/none.pmc, this is a copy/paste:
===
#include
static PMC * Py_None;
pmclass None singleton {
Ah, yep - None is a singleton too - sorry for my confusion.
So it should be rather easy to subclass None, implement get/set_pointer
and us
Leopold Toetsch wrote:
Klaas-Jan Stol wrote:
Suppose I would want to have my own custom representation of "None".
What should I do to have my child class be a singleton too? (just
extending singleton as well?)
None isn't a singleton. But have a look at the Null PMC or better
env.pmc.
Klaas-Jan Stol wrote:
Suppose I would want to have my own custom representation of "None".
What should I do to have my child class be a singleton too? (just
extending singleton as well?)
None isn't a singleton. But have a look at the Null PMC or better env.pmc.
$ grep singletion classes/*.
hi,
Will Coleda wrote:
On Jul 27, 2005, at 4:00 PM, Klaas-Jan Stol wrote:
hi,
Is there any documentation about the complete syntax for pmc files
when writing PMCs (this time in C)?
I think that's technically the only way to write PMCs. (things
written in PIR are Objects). And, as you
On Jul 27, 2005, at 4:00 PM, Klaas-Jan Stol wrote:
hi,
Is there any documentation about the complete syntax for pmc files
when writing PMCs (this time in C)?
I think that's technically the only way to write PMCs. (things
written in PIR are Objects). And, as you've seen, pmc2c.pl is
cu
hi,
Is there any documentation about the complete syntax for pmc files when
writing PMCs (this time in C)? I found genclass.pl and pmc2c.pl, but I
couldn't find anything about all keywords that can be used. In
particular, I wrote down some scenarios. Maybe there are some more cases
than these
11 matches
Mail list logo