Subj : Translating CASE from BASIC to C++
To   : Mike Luther
From : Eddy Thilleman
Date : Fri Feb 16 2001 12:20 am

Hello Mike,

Tuesday 13 February 2001 23:13, Mike Luther wrote to Eddy Thilleman:

ML> Yes, it does.  Therefore, reducing it to numeric logic isn't quite as
ML> easy as i the comparison could be determined at compile time.  That
ML> would be easy (I think!)  Simply switch the logic to numeric to start
ML> with and forget text!  After all, integer operations are, I guess, at
ML> this level about as fast and efficient as you can get!  As a matter of
ML> fact, from what littleI know, long integers, in some cases, may be
ML> even as good or better than short ones..

If you can put multiple chars inside one long integer, I guess...

ET>> Concerning cross-compability at source code level: only use
ET>> documented standard elements which behave the same with all compilers
ET>> on all platforms (but I think you already know that).

ML> Oh yes...  I'm horribly trying to keep the portability issue in front
ML> of me at all times, but learning is expensive... ;)

Keeping cross-compability prevents you from using specific advantages of
specific platforms, but you can include specific code for specific platforms
inside IFDEF...ELSE...ENDIF (or ENDDEF, I don't remember exactly) compiler
directive's testing for the target platform. So if you can use advantages of a
platform with just localized code inside IFDEF...ELSE...ENDIF compiler
directive's, why not? :)


 Greetings   -=Eddy=-

 email: [email protected]
        [email protected]

... I program like a MAN. I use COPY CON PROGRAM.EXE.
--- GoldED/2 3.0.1
* Origin: Bugsbugsbugsbugsbugsbugsbugsbugsbugsbugsbugs (2:280/5143.7)