예제 #1
0
def chaperone_vector(args):
    unpacked = unpack_vector_args(args, "chaperone-vector")
    return imp.make_interpose_vector(imp.W_ChpVector, *unpacked)
예제 #2
0
def chaperone_vector(args):
    unpacked = unpack_vector_args(args, "chaperone-vector")
    return imp.make_interpose_vector(imp.W_ChpVector, *unpacked)
예제 #3
0
def impersonate_vector(args):
    unpacked = unpack_vector_args(args, "impersonate-vector")
    if unpacked[0].immutable():
        raise SchemeException("impersonate-vector: cannot impersonate immutable vector")
    return imp.make_interpose_vector(imp.W_ImpVector, *unpacked)
예제 #4
0
def impersonate_vector(args):
    unpacked = unpack_vector_args(args, "impersonate-vector")
    if unpacked[0].immutable():
        raise SchemeException(
            "impersonate-vector: cannot impersonate immutable vector")
    return imp.make_interpose_vector(imp.W_ImpVector, *unpacked)