[eclipse-users] undefined variable attribute

From: Malcolm Ryan <malcolmr_at_...25...>
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.3.0 : Wed Sep 25 2024 - 15:13:20 CEST