RE: include paths
- Posted by bensler at mail.com Mar 18, 2002
- 381 views
> >I think your syntax for dynamic inclusion is over complicated. > > I like it because enclosing each variable in parens makes it > clear which parts of the line are not just text. Kind of like > macros in make. > Its' rarely used, so the syntax is comparitively unimportant, > and the bottom line is that it seemed to require a minimum > of changes to the existing code. Using your version, you've added a new syntax to EU. At first glance your syntax looks like it could be 2 statements on the same line. How do you figure that it would be rarely used? I could see myself using it constantly. EG. dir listing: . .. debug\ distr\ myfile.e <myfile.e> constant DEBUG=1 sequence inc_path if DEBUG then inc_path="debug\" else inc_path="distr\" end if include( inc_path&"mylib.e" ) <end myfile.e> As much as I applaud your efforts Karl, my hope is that maybe we can convince Rob that some of these 'features' are feasible and worthy improvements for EU. My train of thought focuses on long term, final solutions. I personally don't care about the syntax, yours would work just fine, but it breaks from the EU mold. Chris