Poster | Thread |
broadblues
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 5-Jul-2014 17:11:55
| | [ #101 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @Hypex
Quote:
If an Interface is a standard object or structure (and not a class) then how does it fit in with C++ or PortablE for that metter?
|
FastFileSystem I'm really starting wonder if you are playing a subtle trolling game or if I have to revoke my previous accustation of intelligence.
I hope neither is really true and we a just not explainiing our selves very well!
You can store the interface in your object. This helps encapsulates the os specific parts and you don't to do any variable renaming stunts to call the libraries, I used thi approach extensivly in my blender port.
rough ly speaking, pseudo code.
class System() { struct m_DOSIFace;
}
System::Contructor() { this.m_DOSIFace = OpenInterface("dos.library"); }
System::Print() { this.m_DOSIface->Printf("this is what I'm trying explian"); }
System::Destructor() { CloseInterface(this.m_DOSIFace); }
sys = new System()
sys.Print();
Go look at the Ghost subsystem in blender to see the real thing in action.
Quote:
I see that as different. New APIs were created and new functions added. But there was no major change to how API calls were made.
|
Honestly there is less change involved than need to build with 68k gcc with it's inlines and macros. If you use __USE_INLINE__ then it's just another form of inlining functions.
And I have maintained a major cross platform project with little issue, just a few #ifdefs for specialist things.
And I'm developeing a 68k app ported to 0S4 with little issue, it was much harder to get it working on 68k gcc than on os4. _________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
Hypex
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 5-Jul-2014 17:12:43
| | [ #102 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11215
From: Greensborough, Australia | | |
|
| @NutsAboutAmiga
Quote:
But because this is a old API, and concept of Objects as we know it today did not exist back in 80's when they designed the AmigaOS API for BCPL and Assembler language. |
But wasn't BOOPSI developed in the 90's? In any case they certainly knew about OOP concepts like classes, objects and inheritence if the RKM is anything to go by.
And, Intituion is written in C. And wasn't designed for BCPL which was a DOS thing. |
|
Status: Offline |
|
|
broadblues
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 5-Jul-2014 17:12:52
| | [ #103 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| |
Status: Offline |
|
|
Hypex
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 7-Jul-2014 15:41:37
| | [ #104 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11215
From: Greensborough, Australia | | |
|
| @broadblues
Quote:
FastFileSystem I'm really starting wonder |
Sorry? How does FastFileSystem relate to an Exec Interface?
I was merely asking about what Deniil715 meant by "real object orientation here, using C++ or PortablE" in relation to an Interface.
So yes I'm not explaining myself that well! Or not asking that well.
Quote:
I used this approach extensivly in my blender port. |
THat's interesting. Though I would associate System with Exec myself I can see how it's intended for a generic DOS API.
Quote:
And I'm developeing a 68k app ported to 0S4 with little issue, it was much harder to get it working on 68k gcc than on os4. |
I've heard about 68K GCC being a pain and have some experience trying to use it.
Quote:
You clearly didn't understand them |
Understand what now? Migrating? Interfaces. I understand them fine. So what's the problem here?Last edited by Hypex on 08-Jul-2014 at 04:00 PM.
|
|
Status: Offline |
|
|
cymru
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 7-Jul-2014 16:32:02
| | [ #105 ] |
|
|
|
Regular Member |
Joined: 24-Feb-2014 Posts: 164
From: South of the Great Divide | | |
|
| @Hypex
69K? Last edited by cymru on 07-Jul-2014 at 04:32 PM.
|
|
Status: Offline |
|
|
Hypex
| |
Re: AmigaOS 3.9 vs 4.1/4.2: what's the big difference/misser? Posted on 8-Jul-2014 16:04:24
| | [ #106 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11215
From: Greensborough, Australia | | |
|
| @cymru
Oh yes, haven't you heard of it? It's the sexy version of the 68K CPU, with sexy sex. The 69K contains the Motorola SEX instruction! LOL! *
* There is some truth to this. |
|
Status: Offline |
|
|