Re: Irv: Re: For loop and a newbie
On 26 Mar 2001, at 8:21, jc at cknet.net wrote:
> Ignorance plain and simple. This simple little routine has produced a
> significant amount of frustration, trying to learn EU and get this thing to
> work. I was under the impression that an atom was an individual number, I was
> thinking that this would test and see if a given parameter was a number or a
> 'string'. I'm simply trying to get the command line parameters and make sure
> they are numbers (ascii codes) in a range of 0 to 255. After I check them out
> I'm going to send them to the printer. This little routine (that I'd written
> years ago in pascal) is to send control codes to printers or cash drawers.
> Believe it or not, people pay me money to program in another environment, but
> I'm feeling like less than a rank beginner! What I think I want are simple
> chr()
> and asc() functions. I guess it's back to the drawing board on this 'sequence,
> atom, integer' business.
I think you are confusing "number" and "character" (english words) with
"byte" (a machine term). Chances are, you will save yourself some grief if
you declare everything to be a sequence or integer.
I did pascal programming for years too, and Eu solved a number of problems
i had with pascal. Since Eu is so LISPy, it also made some interesting
problems.
Kat
|
Not Categorized, Please Help
|
|