home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cix.compulink.co.uk!usenet
- From: jralph@cix.compulink.co.uk ("Jolyon Ralph")
- Subject: More on E
- Message-ID: <DpnDMr.DrG@cix.compulink.co.uk>
- Organization: Compulink Information eXchange
- References: <u>
- Date: Wed, 10 Apr 1996 13:04:03 GMT
- X-News-Software: Ameol32
-
- Wouter wrote:
-
- > Aha. Now tell me then, do things that are personal preference on your
- > part
- > make something unfit for general serious use by anyone, regardless?
-
- It's a (possibly unfortunate) fact that almost all Amiga OS developer
- documentation and example code has always been written in C or for C
- programmers.
-
- Anyone learning E (or any other language for that matter) will have to
- learn enough C anyway in order to learn how to use the OS, to use
- examples from books, read PD code, etc.
-
- And if you're reading someone's C code, whoever you are and hoever much
- experience in C you've had, you're bound to get confused between
- differences (such as expression parsing) between C and E. Some of these
- may be subtle enough not to be noticed immediately resulting in obscure
- and dificult to track down bugs.
-
- Unless you intend to rewrite the entire RKM's from an E perspective, you
- must admit that this will cause people some problems :-)
-
- > Well, my apologies for passing the "flame mode" treshold so soon. But
- > your
-
- Well, I did kind of start it :-)
-
- > Yeah right. Like I haven't done that a thousand times already.
-
- Well, I'm not on the E mail list, I've read the sections in E.guide, but
- some other things would be nice to know. When will E give in-line 680x0
- assembler? When will it do better 680x0/6888x compilation?
-
- When can I compile a module with DEBUG info without having NOP's all over
- the place? (reason - I tend to compile once with debug and then SLINK
- from xxx.debug to xxx STRIPDEBUG to remove the debug data rather than
- compiling twice with and without debug. Obviously, I do have to compile
- twice now with E)
-
- > You are maintaining a large E project without utilizing E's module
- > system, which is not the way it was meant to be used. Not surprisingly
- > smaller problems start to weight heavier, and have little to do with
- > real large scale programming features.
-
- The majority of Photogenics E code was written before the module system
- was available to us :-) We've never got round to splitting it up much (it
- is in 3 modules now)
-
-
- > The one-error thing is indeed one of the bigger design errors in EC,
- > and like some other features too much targeted at myself as a user
- > (I only get errors from EC each tenth run or so).
-
- That is my most particular 'hate' with E, decent error reports would be
- most handy (and if the syntax in a multiline statement is wrong, it would
- be really nice if the actual line with the error could be shown, not the
- start of the multiline statement - we have some *huge* multiline
- statements - such as our CreateMenu :-)
-
- > That's because of your fixed C perspective. remember? I bet you'd be
- > bald by the time you tried several other languages ;)
-
- I've written code in many languages, Pascal, C, C++, Prolog, many
- BASIC's, 680x0, Z80 and, of course, E. I don't really think any language
- is 'best', I can think of bad points about every single one. That doesn't
- mean I want to go out and write something better though, I'm quite happy
- sticking with the one that's 'least worse', and at the moment for my work
- on the Amiga that's C, and on the PC, C++.
-
- > Geesh. I beg to differ. I think it's quite a bit easier, thanks to its
- > logical structure (it's there, look real hard! :).
-
- That's your perogative :-)
-
- > It can be done of course, but it involves hairy things like dragging an
- > E
- > environment around. If you insist on rewriting the main program in C
- > and feel
- > like keeping some E code around, might I advice you look into EC's
- > .library
- > linker?
-
- Yes, I think that may be the best way to do it, I'll check out the EC
- .library linker.
-
- I understand the problems with EC using a different module format, and
- yes, garbage collection would be a problem. But it could have been
- designed originally to work with standard object files, and workarounds
- could have been put in for garbage collection anyway. From the way you
- describe how it works it may be too late now to engineer .o support in,
- which is a pity.
-
- Jolyon
-