[progress Communities] [progress Openedge Abl] Forum Post: Using Yourself

  • Thread starter Thread starter Patrick Tingen
  • Start date Start date
Status
Not open for further replies.
P

Patrick Tingen

Guest
I am currently working on some courses in the Progress Education Community and in the course for Object Oriented I came across something that had me puzzled for some minutes. The thing that confused me was where the course explained interfaces. Take a look at this code: using Progress.Lang.*. using Inventory.IProduct. block-level on error undo, throw. interface Inventory.IProduct: end interface. What is the line " using Inventory.IProduct. " doing in there? We are defining the interface itself, so why would you want to tell the compiler what to use? I know the Progress compiler is not of Nobel Prize winning quality, but surely you do not need to tell this. Experimenting in DevStudio tells me that it makes no difference whether you define it or not. If I right-click on the code and choose 'organise Using statements', both using-statements in the above example are removed. So is it safe to assume that this is just an example of a bad example?

Continue reading...
 
Status
Not open for further replies.
Back
Top