1. RE: Euphoria 2.5 Will Break Existing Code

Al:
   Maybe if you wait until 2.5 becomes available there
   maybe an easier way to do oop with its new features
   and you can scrap the include dependency features.

   PS: hurry up Rob !!!

Bernie

new topic     » topic index » view message » categorize

2. RE: Euphoria 2.5 Will Break Existing Code

> 
> From: Al Getz <Xaxo at aol.com>
> Subject: RE: Euphoria 2.5 Will Break Existing Code
> 
> 
> Juergen Luethje wrote:
> 
>>Igor already gave you a hint. He was meaning this:
>>
>>>>http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=2&fromYear=9&toMonth=2&toYear=9&postedBy=Juergen+Luethje&keywords=advantage
>>
>>
>>Regards,
>>   Juergen
>>
> 
> Hello Juergen,
> 
> Thanks for the info, i didnt get that post on the web interface
> as usual, another nice feature.  Who's idea was it to move
> to this Topica again?
> 
> Anyway, i like the idea and ive considered also the following:
> 
> 
> Part1.exw:
> 
> constant fname="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.txt"
> x=readflag(fname) --originally set to 1
> if x=1 then
>     writeflag(fname,0)
> else
>     writeflag(fname,1)
> end if
> 
> y=determine_y() --based on platform or other requirements
> 
> if x>0 then
>     --do writes
>     if y=1 then writecode1("Incl.ew") system(ExecutePart1,2) abort(0)
>     elsif y=2 then writecode2("Incl.ew") system(ExecutePart1,2) abort(0)
>     end if
>     --else execute code
> end if
> include Incl.ew
> DoRemainderOfProgram()
> 
> 
> Incl.ew:
> 
> --code written by writecodeN:
> -- --whatever, code 1 or code 2--
> 
> 
> But, alas, the main point was that before 2.5 the dynamic includes
> already work.  Also, i assumed the nature of the mechanics of the
> includes would get BETTER, not WORSE, with time as Euphoria 
> progressed, making it EASIER not HARDER to use.
> 
> The above seems to achieve conditional includes, but see how
> much more complicated it is to implement?
> Wouldnt this be nice:
> 
> if y=1 then
>     include Incld1.ew
> else
>     include Incld2.ew
> end if
> 
> Five lines vs whatever lines it took to do it above.
> 

	And it does not solve the case when you have to issue the "include" statement 
from inside a routine, or even an "if" block. You can expect dynamic includes 
to be most needed in dynamic contexts like these. And Eu is supposed to 
support modular programming.
	It looks like "simple programming language" is quite different from "simple 
programming". Good marketing trick, Rob.
	For suggestions about tweaking Eu towards simple programming, see the 
wish2.txt file I sent 08/19/2003. It may have appeared as a long post.
	Any help in the OpenEuphoria project is welcome.

CChris

> 
> Take care,
> Al
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu