Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/inferno/appl/cmd/Ltheme/t.b

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


implement T;

include "sys.m";
	sys: Sys;
include "draw.m";

T: module
{
	init: fn(ctxt: ref Draw->Context, args: list of string);
};

init(ctxt: ref Draw->Context, args: list of string)
{
	sys = load Sys Sys->PATH;

	a : list of int;

	if(a == nil) {
		sys->print("nil\n");
	} else {
		sys->print("length %d\n", len a);
	}
}


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.