All pastes #768001 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-10 05:06 UTC
rendered paste body
objectdef MyObject
{
	variable string ObjectString
	
	method Initialize(string theString)
	{
		ObjectString:Set[${theString}]
	}	
}

function main()
{
	collection:MyObject MyCollection
	
	MyCollection:Set["First",${MyObject["Hello World"]}]
	
	echo ${MyCollection["First"].ObjectString}
}