Ask a Question related to Macromedia ColdFusion, Design and Development.
-
brettr_ #1
What happened to CFC forum?
There use to be a CFC forum here. Has it been discontinued? Also, what use
are CFC access=package? The only example I've seen shows referencing a CFC via
full directory path dot notation. You can do that without access=package.
Comments? Thanks, Brett
brettr_ Guest
-
After Cmd+D, nothing happened!
Hi, I was doing the layout and tried Cmd+D in ID to get some pictures, but nothing happened - no window popped up. It used to work...I don't know... -
What ever happened to DRK?
I used to subscribe to Cold Fusion DRK and was considring doing it again but I can't find any info on it. Anybody know what happened? -
What happened?
The problem is this is NOT a binaries News Group. That means you are not allowed to post binary files. If you see the name "binaries" in the... -
wow what happened
Is it just me or did a whole bunch of messages disappear? (I'm using the newsgroup rather than webx) -
What happened to apt-get.org?
On Tue, 2003-08-05 at 15:05, Dugan Chen wrote: Looks like the ISP is having issues. -- greg, greg@gregfolkert.net REMEMBER ED CURRY!... -
Buda123 #2
Re: What happened to CFC forum?
available only to the component that declares the method, components that extend the component, or any other components in the package.
Buda123 Guest
-
brettr_ #3
Re: What happened to CFC forum?
I don't follow what you mean by, 'available only to the component that declares the method'.
Please give me an example of what you would want to use a package.
brettr_ Guest
-
Buda123 #4
Re: What happened to CFC forum?
For example you have component 'users.cfc', and inside you have couple of
methods, search, insert, delete..... for example you are making insert to DB,
and you have html form, where user fill data and on click of submit button you
are calling 'users.cfc' and 'insert' method. To insert record you need to
generate primary key for new record, so you can make method 'makePK' inside the
same 'users.cfc'. Since that method is called only by methods inside
'users.cfc' and NOT by outside world. you can make it as 'package' so only
methods within 'users.cfc' can access it. This is just an example, I hope it
helps
Buda123 Guest
-
-
Buda123 #6
Re: What happened to CFC forum?
well, if you declare it as private, you can access it only within that
particular component, and if it as a package you can use it within any
component in the same folder (without using extend attribute). That is main
difference.
Buda123 Guest
-
brettr_ #7
Re: What happened to CFC forum?
I see. Is there an equivalent to package in Java? Package is the same as
declaring everything public as long as you stay in the same folder....correct?
You reference a comparison to extends. However, extend is more specific.
Package just seems to make everything open within the same folder that is
declared as package. Seems dangerous and may add complexity to your debugging.
brettr_ Guest
-
Buda123 #8
Re: What happened to CFC forum?
I am not sure for Java, but yes you are right,
regards
Buda123 Guest
-
brettr_ #9
Re: What happened to CFC forum?
Given that, do you know of any real world application for 'package'? Also, it
doesn't seem Macromedia has done any type of enhancements for making CF and CFC
more object oriented. For example: - allowing a child to inherent from the
grandparant - constructor - destructor - protected or friend declaration -
shared declaration ...to start with. Just seems Macromedia isn't taking object
orientation seriously. What they have now is very peice mill...for lack of
better words.
brettr_ Guest
-
Buda123 #10
Re: What happened to CFC forum?
Nope, I never used package in real life ( I haven't found real need for that)
and exactly, even there is a bunch of realy cool features in new CF, Ithink
more Object Orienting will be realy nice add on to CF.
Buda123 Guest
-
Adam Cameron #11
Re: What happened to CFC forum?
> I see. Is there an equivalent to package in Java? Package is the same as
[url]http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html[/url]> declaring everything public as long as you stay in the same folder....correct?
> You reference a comparison to extends. However, extend is more specific.
> Package just seems to make everything open within the same folder that is
> declared as package. Seems dangerous and may add complexity to your debugging.
--
Adam
Adam Cameron Guest
-
Kronin555 #12
Re: What happened to CFC forum?
Java has "package" as well
[url]http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html[/url]
Kronin555 Guest



Reply With Quote

