You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originally created at: 2002-08-16 12:30:41.
This issue was reported by: aroach.
aroach said at 2002-08-16 12:30:41
I find it difficult to keep track of whether a
particular thing is a global function provided by SCons
or a method of Environment. It also seems that there is
no consistent rule for this. For example Precious would
seem to be environment neutral since it just tells
SCons not to delete a file before building it, and yet
it is a method of Environment. In addition I've had
some trouble explaining to people why they need to
create an Environment instance just to do something
simple.
I propose the following:
every global function should have a corresponding
Environment method that just calls the global function.
every Environment method should have a corresponding
global function that calls the Environment method on
some default unamed environment (or maybe the default
environment is made available using the name "env").
For example this would allow a SConstruct file to
contain just:
After a little more thought, maybe #1 isn't such a good
idea, because it might give people the impression that
certain functions are environment specific rather than
global. For example:
This issue was originally created at: 2002-08-16 12:30:41.
This issue was reported by:
aroach
.aroach said at 2002-08-16 12:30:41
aroach said at 2002-08-16 12:44:17
stevenknight said at 2003-10-17 19:26:15
issues@scons said at 2003-10-17 19:26:15
The text was updated successfully, but these errors were encountered: