This is the mail archive of the
mailing list for the Archer project.
Re: Issue with template_argument when template argument is an integer.
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.
----- Original Message ----
From: Tom Tromey <email@example.com>
To: Lucien Anti-Spam <firstname.lastname@example.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 <email@example.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.