Re: Euphoria 2.5

new topic     » goto parent     » topic index » view thread      » older message » newer message

CK Lester wrote:

----------
> From: cklester <guest at RapidEuphoria.com>
> To: EUforum at topica.com
> Subject: Re: Euphoria 2.5
> Sent: 29 jul 2004 y. 0:39
> 
> Igor Kachan wrote:
> > 
> > CK Lester wrote:
> > > Igor, your version of s[length(s)] doesn't
> > > quite work perfectly...
> > > 
> > > Run this:
> > > -- start of code
> > > include get.e
> > > 
> > > sequence junk
> > > 
> > > integer A_
> > > type sequence_with_length_A(sequence a)
> > >   A_= length(a)
> > >   return sequence(a)
> > > end type
> > > 
> > > sequence_with_length_A A_A, A_B, A_C
> > > 
> > > A_A = "Hello"
> > > A_B = "World"
> > > A_C = "Goodbye!"
> > > 
> > > ?A_A[A_]
> > > ?A_B[A_]
> > > ?A_C[A_]
> > > 
> > > --end of code
> > 
> > He - he, CK, this version above is yours one,
> > it doesn't quite work perfectly...
> 
> No, it was your version with an example
> of why yours wouldn't work. :P

OK, yours example doesn't work, incorrect example. :b

> > > Sure, you could define B_ and C_, 
> > 
> > Yes, good, this is my version ...
> > 
> > > but what happens when you 
> > > have a billion sequences? :)
> > 
> > I'll use the next EU weapon against
> > a billion sequences ... :|
> 
> You mean you'll use '$' when necessary?

The next EU weapon is just old good EU ;)

I'd just copy/paste something billion times,
then correct code, maybe, I do not know,
I have no problem with length(s), I just use
that clear construct - s[length(s)].

These all examples show what a powerful and
flexible language EU is. 
Rob uses C to implement almost the same thing,
and it is not a trivial job, he says.

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu