Re: Attempt at approximating Lisp's "macroexpansion"

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 07/17/2013 08:41 PM, Ian Tegebo wrote:
> On Wed, Jul 17, 2013 at 10:28 AM, Jan Wielemaker <[email protected]> wrote:
>> On 07/17/2013 05:49 PM, Ian Tegebo wrote:
>> [...]
>>> [...] I got into the habit of using module/1 at the top-level for the
>>> convenience of atom completion.
>>
>> Atom completion is not module-aware.  Typically, you just type the goal
>> in the user module and expect DWIM to add the module for you.
>
> Ah, right you are.  I forgot that I actually do it to avoid the extra
> prompt and input resulting from DWIM.  Anyway, thanks for looking into
> the issue with the toplevel.

It was a bit harder than I expected because the toplevel parses queries
with the outdated atom_to_term/3 interface.  Added a 
read_term_from_atom/3 that provides the required flexibility and pass
the input module to it.

	Cheers --- Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.