def resolve_forward_references
forward_references = @forward_references
@forward_references = []
@had_forward_reference_resolution = false
if forward_references.size > 0
@forward_reference_resolver ||= callcc {|cont| cont} while
(@forward_reference_resolver == nil)
forward_reference = forward_references.shift
if forward_reference != nil
establish_forward_reference_context(forward_reference.context) if
respond_to?(:establish_forward_reference_context,true)
forward_reference.continuation.call
end
end
@forward_reference_resolver = nil
resolve_forward_references if @had_forward_reference_resolution
end