Re: EUPHORIA Digest - 18 Jun 1998 to 19 Jun 1998 (#1998-33)
- Posted by Robert B Pilkington <bpilkington at JUNO.COM> Jun 20, 1998
- 803 views
>>Date: Sat, 20 Jun 1998 08:17:15 +1000 >>From: "Graeme." <hmi at POWERUP.COM.AU> >>Subject: Re: File I/O Difficulty >> >>file_proc=file_proc&getc(file_i) > >Then you don't need file_length, just getc until -1. > >I prefer gets because it's called (the number of lines + 1) times, >instead of (the number of bytes + 1) times. For the purposes of what was going on, a binary file, I don't know if gets() would work as well > >Rob Craig: Not me, but I can provide some input here: >- can we have the following two functions built-in (so that they >execute > faster)? >- can we have left-to-right processing of && and ||? (still, 'and' and >'or' will examine all operands) Huh? Don't understand. >- can we have ?: operator (or immediate if), like > a = b ? c : d > instead of > if b then > a = c -- note: d not calculated > else > a = d -- note: c not calculated > end if Huh? Understand even less. Euphoria is supposed to be readable. And what's wrong with the if method? I understand it, everybody understands it. >include file.e >-- in file.e: type file_number(integer x) return x >= 0 end type >global function getsc(file_number fn, file_number len) >global function filesize(file_number fn) What's with these? Are they meant for showing us useful functions (filesize is useful....), or did you want them added to file.e? (Probably just code for the sake of code, but I'd figure I'd ask...) _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]