• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4770: Use of ref() eq '' cripples subclasses

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   minor  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Use of ref($var) eq 'ClassName' means that $var has to be exactly that object type; it chokes subclassing. Should always use UNIVERSAL::isa($var, 'ClassName') instead.

This mainly affects plugins, but there are some instances in the core as well that must be corrected before 4.2 is released.

-- TWiki:Main/CrawfordCurrie - 04 Oct 2007

As well as this, a further abstraction is required to allow query caches to be used. More detail to follow.


The additional abstraction allows the query code to load a topic for a ref operator without having to know the details of the store implementation.



Summary Use of ref() eq '' cripples subclasses
ReportedBy TWiki:Main.CrawfordCurrie

SVN Range TWiki-4.3.0, Sun, 30 Sep 2007, build 15107
AppliesTo Engine

Priority Urgent
CurrentState Closed

Checkins TWikirev:15172 TWikirev:15173
TargetRelease minor

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-10-06 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback