So I assume that you use session.currentUser to hold EITHER a manager
object OR a worker object.  

This may be a stupid question since I don't have a lot of oop
experience, but is it bad form to use the same variable name to store
two different types of objects?  That seems so create the problem you
have now, because you don't know what class you used to instantiate that
object.

~Brad

-----Original Message-----
From: Joelle Tegwen [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 11:38 AM
To: CF-Talk
Subject: Test object type

I have a User.cfc, Manager.cfc and Worker.cfc. Manager and Worker extend

User.

I would like to be able to test whether an instantiated object is a 
Worker or a Manager.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239823
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to