Re: Altering .compact via spyceconf.py?

"Jonathan Ellis" <[email protected]> Fri, 27 Oct 2006 10:38:39 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
On Fri, 27 Oct 2006 12:34:58 -0400, "Philip Semanchuk"
<[email protected]> said:
> Hi all,
> I'm interested in experimenting with the [[.compact]] directive. I have 
> a lot of .spy files and rather than modifying them all, I would like to 
> be able to control compaction via a central location -- spyceconf.py 
> would be ideal. Here are the three possibilities that I see in order of 
> best to worst:
> 1) A line or two of spyceconf.py magic that I haven't yet figured out. 
> (Perhaps via some abuse of globaltags?)

Compact is a compiler directive, not a runtime thing.  Which is good
because it's fast but bad because it's very limited.  You'd have to hack
the compiler if you wanted to make this global.  Personally I would
rather remove it completely and force using runtime filters instead.

> 2) Modify all of my .spy files to include some sort of "if global 
> compaction setting is on: [[.compact]]". (Bad syntax but you get the 
> idea.)

Also won't work.  The if is runtime, the .compact is compile-time.

> 3) Modify all of my .spy files to add or remove [[.compact]] each time 
> I want to change it. (Yuck.)

Yeah, yuck. :)
-- 
C++ is history repeated as tragedy. Java is history repeated as farce.  --Scott McKay


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642