This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: Issue with template_argument when template argument is an integer.
Hi Tom,
Logged complete with a "workaround" example pp.py that uses string extraction to
get the other template parameters, not very sleak but it does the job for now.
Bugzilla 10476:
http://sourceware.org/bugzilla/show_bug.cgi?id=10476
Cheers,
Luc
----- Original Message ----
From: Tom Tromey <tromey@redhat.com>
To: Lucien Anti-Spam <lucienmp_antispam@yahoo.com>
Cc: archer@sourceware.org
Sent: Tuesday, August 4, 2009 2:56:34 AM
Subject: Re: Issue with template_argument when template argument is an integer.
>>>>> "Lucien" == Lucien Anti-Spam <lucienmp_antispam@yahoo.com> writes:
Lucien> I was attempting to write a pretty pritner for a class and found
Lucien> that I cant get the arguments to a template if they are NOT a
Lucien> type (eg if they are int).
Yeah, that is a problem. I think there may also be much harder cases to
support than this one.
Lucien> Am I approaching this from the wrong angle?
Nope. Basically, python-type.c:typy_template_argument needs to learn
that it should create a Value rather than a Type in some situations.
Could you file a bug report for this? Thanks.
Tom