Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the "forward" keyword

Status
Not open for further replies.

nad22

Programmer
Feb 2, 2006
3
CA
Hello,

I wanted to know what "forward" keyword means. For example:

forward
global type pfc_n_base from nonvisualobject
end type
end forward


Thanks for feedback.
 
A forward declaration is where you're saying the details/definition of an object (for example the body of a function) will be defined later but it's existence has to be declared earlier so it can be used and still keep the compiler happy.

In more technical oo terms, you would use forward declaration "to use an undeclared class as a superclass for another class".

Forward declaration is a section PowerBuilder adds to the object source behind the scenes.
 
Thank you very much for clarification.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top