singrdk/base/Libraries/Policy/Environment.cs

33 lines
1.1 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ----------------------------------------------------------------------------

namespace Microsoft.Singularity.Policy.Engine
{
// An Environment is a single Cell containing an environment. This replaces
// the multiple cells used in the WAM in a more strongly typed way. The
// Environment is followed on the stack by the permanent arguments.
internal class Environment : Cell {
internal readonly uint _n;
internal readonly Address _ce;
internal readonly Address _cp;
internal Environment(uint n, Address ce, Address cp) {
_n = n;
_ce = ce;
_cp = cp;
}
public override string ToString() {
return "<ENVIRONMENT "
+ _n.ToString()
+ " "
+ _ce.ToString()
+ " "
+ _cp.ToString()
+ ">";
}
}
}