help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Including files


From: Stephen Compall
Subject: Re: [Help-smalltalk] Including files
Date: Wed, 30 Aug 2006 21:08:44 -0500
User-agent: Thunderbird 1.5.0.5 (Macintosh/20060719)

Bram Neijt wrote:
> Is there an 'include' statement which takes the calling file position
> into account?

Before you go off and add a primitive for _gst_get_cur_file_name,
consider the intent of your package:

1. Is this a package of library-like code?  If so, consider arranging
for a package XML description to install and load your package via the
PackageLoader.

2. Is this a script to be installed?  If so, you can use Autoconf's
substitution to insert the proper value when your package is
configured (this is how gst finds the default kernel directory).
Doing this yourself is also easy:

sed 'address@hidden@!'$bindir'!' script.st.in > script.st

Also there may be a way to get the current filename that I am missing.
 thisContext method methodSourceFile doesn't seem to have it, which
isn't that surprising....

-- 
Stephen Compall
http://scompall.nocandysw.com/blog




reply via email to

[Prev in Thread] Current Thread [Next in Thread]