[eclipse-users] undefined variable attribute

From: Malcolm Ryan <malcolmr_at_cse.unsw.edu.au>
Date: Mon, 3 Sep 2007 17:49:43 +1000
I'm getting an "undefined variable attribute" error from suspend/3 in  
the code:

:- module(bar).

:- meta_attribute(attribute_name, []).
:- export init/1.
:- export struct(structure(susplist)).

init(V) :-
	Attr = structure{},
	add_attribute(V, Attr, attribute_name),	
	init_suspension_list(susplist of structure, Attr),
	suspend(true, 4, V->bar:(susplist of structure)).
	
What is wrong here?

Malcolm

--
      "Progress should mean that we are always changing the world to fit
       the vision, instead we are always changing the vision."
                - G.K.Chesterton, Orthodoxy
Received on Mon Sep 03 2007 - 08:51:13 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET