Undocumented features

View: New views
2 Messages — Rating Filter:   Alert me  

Undocumented features

by Marlon Moyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ike,

I was trying to figure out why onTap doesn't want to run on BD6.2.  I
was trying to figure out what you're doing with the createobject
command in the _libraries/cf_util/getObject.cfm file.  I can't even
find documentation on the Macromedia site regarding sending more than
2 parameters to a createobject function.

Is this a documented feature?  If not, isn't it kinda dangerous to
base the framework on it?

Thanks


--
Marlon

"Now watch what you say or they'll be calling you a radical,
liberal, fanatical, criminal. "

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how to get a fax number that sends and receives faxes using your current email address
http://www.houseoffusion.com/banners/view.cfm?bannerid=64

Message: http://www.houseoffusion.com/lists.cfm/link=i:42:1817
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/42
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:42
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.42
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown Re: Undocumented features

by S. Isaac Dealey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Ike,

> I was trying to figure out why onTap doesn't want to run
> on BD6.2.  I
> was trying to figure out what you're doing with the
> createobject
> command in the _libraries/cf_util/getObject.cfm file.  I
> can't even
> find documentation on the Macromedia site regarding
> sending more than
> 2 parameters to a createobject function.

> Is this a documented feature?  If not, isn't it kinda
> dangerous to
> base the framework on it?

> Thanks


No it's not undocumented... it just has piss poor documentation
apparently (for example, the CF5 documentation says "refer to the
following sections for more details about using createobject to create
COM, CORBA and Java objects", followed by 3 links labelled "COM",
"CORBA" and "CreateObject")... and in addition, much of the
documentation has apparently VANISHED since the transition from CF5 to
CF MX (when CreateObject suddenly became much more widely used of
course). But if you go back and you look at the documentation for CF5
in the livedocs, you'll find references to the additional arguments in
the documentation for using CreateObject with COM and CORBA (both of
which accept up to 4 arguments).

http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Functions
44.htm#1102241

(
Missing documentation for MX and 7 at:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi42.htm#wp
1102241
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/co
mmon/html/wwhelp.htm?context=ColdFusion_Documentation&file=part_cfm.ht
m
)

I had thought I'd written getObject() such that it would only use the
arguments passed to it, so I figured that would work, but... and I'm
not looking at the function currently (Mike and Judith were in from
out of town and we went to dinner with them and didn't get back until
late, so I'm not doing any real work tonight)... I guess if BD is
erroring on the creation of that function because there are too many
arguments passed to CreateObject(), then that function would likely
need to be created with an evaluate() (the cf_core/call function does
this) so that BD doesn't see the "problem" until the function
executes, at which point the argument list can be trimmed to 2.


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:42:1818
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/42
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:42
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.42
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54