Re: Euphoria 2.5
- Posted by "Igor Kachan" <kinz at peterlink.ru> Jul 29, 2004
- 648 views
Hi Juergen, [snipped old info] > Igor Kachan wrote: > >> From: Juergen Luethje > >> Sent: 28 jul 2004 y. 23:39 > >> Igor Kachan wrote: > >>> CK Lester wrote: > >> How should B_ and C_ be defined, and how > >> should the appropriate value > >> be assigned to B_ and C_? > >> Will you define a separate type for each sequence? > >> > >> <snip> > > > > Yes, a separate type for each sequence. > > > > }}} <eucode> > > integer B_ > > type sequence_with_length_B() > > ... > > end type > > > > integer C_ > > type sequence_with_length_C() > > ... > > end type > > > > integer D_ > > type sequence_with_length_D() > > ... > > end type > > </eucode> {{{ > > And what is the advantage compared > to conventional Euphoria programming > style, i.e. not using all those types, > but using 'length(A_A)', > 'length(A_B)' etc. directly? Really you have just 1 or 2 main sequences in your program. For example, ed.ex editor. So, you can enter these types and then use A_ or B_ anywhere you want instead of, say, length(First_Very_Long_But_Very_Clear_Name_of_Main_Sequence_1) and length(Second_Very_Long_But_Very_Clear_Name_of_Main_Sequence_2). But you could not use $-feature in the same manner, there is no the separate $-value at all. Regards, Igor Kachan kinz at peterlink.ru