logo       

Re: minor annoyance in 3.008 puic: msg#00013

Subject: Re: minor annoyance in 3.008 puic
Le Mercredi 12 Novembre 2003 04:25, Richard Dale a écrit :
> On Monday 10 November 2003 15:47, Germain Garand wrote:
> > > The Smoke library used be both perl and ruby, finds methods by starting
> > > at a 'best guess' of setText# in this case, to mean a setText() method
> > > passed an object of some sort. Instead it should guess 'setText$' if a
> > > string was expected, but I haven't worked out how to do that yet, it's
> > > harder than it sounds :(..
> >
> > Actually, PerlQt can use undef arguments because whenever it encounters
> > one, it builds parallel requests
> > - e.g foo(undef, 3) will build "foo$$", "foo#$" and "foo?$"
> > That's the meaning of the map {} stuff in do_autoload.
>
> Ah.. thanks for that! I've always wondered what that code did, now I
> understand the map function I can see that's really neat stuff. I've
> translated it directly into ruby, and nil string args work fine now.
>

I was stunned when I first saw those ten lines.
Makes me feel like a ruthless butcher every time I poke around :-)

> When I ran my test puic .ui generated program with debug on, I got this
> message:
>
> Ambiguous method call for :
>         QKeySequence::QKeySequence(undef)
> Candidates are:
>         QKeySequence* QKeySequence::QKeySequence(int)
>         QKeySequence* QKeySequence::QKeySequence(const QString&)
>
> The ruby version of the undef arg test in argmatch() looks like this:
[...]
> It gives a higher priority or score to string arg types, so it would pick
[...]
> Also in the test for classes, I've given a higher priority for an exact
> match, 

Good! We have very close selection mechanisms then. 


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe