Can you tell I reply to the whole digest?
- Posted by Mathew Hounsell <mat.hounsell at MAILEXCITE.COM> Apr 28, 1998
- 677 views
[Type] type positive_integer ( object x ) if integer(x) then if x > 0 then return 1 end if end if puts(2, "\nA positive_integer must be an integer greater than 0\n") ? x puts(2,"is not an integer.\n\n") return 0 end if You can do anything that you would normally do in a procedure in a type. I even had a type one time that if it recieved a graphics cusor placement of the screen scroll the entire screen. [Future Types] I agree with Arthur Adamson one byte instead of always four would be good, but Rob said: > In the past, I've concluded that 1 byte per element is very difficult to achieve without slowing down execution speed, or making the interpreter a lot bigger and buggier. < Oh well. I wrote : > Type is used to restrict the data type is euphoria, if you've decided you need a sequence containg numbers and sequences you don't want the numbers being sequences. < And it is helpful when programming libraries if you know there is going to be no sequence in your sequence if say you want to poke it into mem. [300 Line Limit] <Hang Head> I haven't Registered </HH>, but I'm a poor Uni student, and I mean that. I had the money but for reasons I will not go into I didn't register. I always get hit by the three hundred limit, but then I just remember most languages are not even this helpful and work my way atround it. ?ing a variable while redirecting STDOUT to a file is always helpful. But a Count.Ex to count the lines in a library/program would be helpful, or with count would be OK. except I always find ex.pro and ex.err all over my C drive. > Your program has to get pretty complex before you reach the 300 statements limit. < I must always do complex work, Eu includes the libraries in the count BTW. And Hey I may register soon, but my 3rd year at uni is leaning towards maybe not so I don't know if I will, that and the I'm waiting for the exchange rate to rise a little more. [Euphoria's Strong Suit] It's flexibility. I wrote an interpreter in Euphoria. It was easy (well easy-ish) because I didn't have to work with the, lets be honest, primitive data types of other languages. Oh and as Pete pointed out: what you can do to the sequence is also a strong point. Can you add stuff to the end of an array in C. And length() is pretty handy, especially since it is direct access to a number. [Bug] > gets() is supposed to return the whole line including '\n' if there is one. The last line in a file might not have a '\n', so gets() will return all the characters on that line, but there won't be a '\n' on the end. < Not in my experience Rob. [Consideration] > There are also the people who are excluded because they don't have the most current hardware. Not everyone has a 200Mhz Pentium, or a SVGA monitor. < I'm one, 486DX2/66Mhz, 8MB Ram, 540MB HDD, and DOS 6.22 with Win3.11. [Advanced Help (For Me Please) ] Can any one help me on this one: 1.) How do I pass an pointer too a DOS interupt give the address returned by Euphoria allocate or do I have to Machine code it, which I don't know how. 2.) How do you has been revectored to the Error interupt or is a Null Vector. 3.) And If I write a software interrupt (TSR Probablely) to handle say shared mem (yes this is for Eu) if the interrupt is called is called will execution be passed to the main function afterwards or what? That is I write a TSR it attaches itself to an unused interrupt. It is then called it allocates some mem, stores a pointer to it, the sends that pointer back to the caller. Will main automatically be prossed every time the INT is. 4.) How do you execute machine code with an int/tsr, considering it will probablely be the users machine code. --- Sincerely, Mathew Hounsell Mat.Hounsell at mailexcite.com P.S I intend to write an array library for euphoria this sunday. Free web-based email, Forever, From anywhere! http://www.mailexcite.com