[ Previous ] [ Index ] [ Next ]

Reading a module

A module can be read in a number of ways.

If it is being read for the first time into a snapshot, you can use the runScript message:

	'applications/accounts.self' runScript
Or use the bootstrap object:
	bootstrap read: 'accounts' From: 'applications'
Or use the _RunScript primitive directly (this is only necessary with an empty VM, for example when rebuilding the system from scratch):
	'release4_0.self' _RunScript
Or, if the module is being re-read (perhaps someone has given you a newer version) there are several alternatives:
	modules accounts fileIn
	cc accounts				"with apologies to C programmers!"
In Self 4.0, there will be a module cache refill the next time a programming change is made after a file is read in; this may be eliminated in future versions.