Re: Data as Scripts and [package require]
From: Don Porter (dgp_at_email.nist.gov)
Date: 10/22/03
- Next message: Michael Schlenker: "Re: Redirect file output into variables"
- Previous message: Don Porter: "Re: TIP #161: Change Default for Menu's -tearoff Option to False"
- In reply to: Bob Techentin: "Data as Scripts and [package require]"
- Next in thread: Bob Techentin: "Re: Data as Scripts and [package require]"
- Reply: Bob Techentin: "Re: Data as Scripts and [package require]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Oct 2003 18:16:37 GMT
Bob Techentin wrote:
> But the package mechanism doesn't seem to be well suited to changing
> versions on different calls to [openFile]. Is there a "right way" to
> use packages and data files? Or am I barking up the wrong tree?
Probably the wrong tree. Packages are managed by [package] on a
per-interp basis, and it sounds like you are looking for something
that gets configured per-channel instead.
You could probably make things work with a one-slave-interp-per-channel
model, but that might be more work/overhead than makes sense.
Middle ground might be a one-slave-interp-per-data-version model, and
then route the evaluation of file contents to the right slave based
on what version the file format is. This might not be so bad because
you are probably using a (safe) slave interp to do the code evaluation
as data reading approach anyway.
-- | Don Porter Mathematical and Computational Sciences Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
- Next message: Michael Schlenker: "Re: Redirect file output into variables"
- Previous message: Don Porter: "Re: TIP #161: Change Default for Menu's -tearoff Option to False"
- In reply to: Bob Techentin: "Data as Scripts and [package require]"
- Next in thread: Bob Techentin: "Re: Data as Scripts and [package require]"
- Reply: Bob Techentin: "Re: Data as Scripts and [package require]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|