schemy icon indicating copy to clipboard operation
schemy copied to clipboard

Little Tweaks for Unity :)

Open karstenwinter opened this issue 6 years ago • 0 comments

Since scripting is always a nice thing in Videogaming, I chose your library for my Unity Project AsciiQuest (WIP).

The only thing needed to make the Unity version I have happy is to reimplement Enumerable Zip and Tuple Create (or change public static bool EqualImpl(object x, object y) {...} to not use tuples) as well as making InitializeFiles protected virtual to override it (assembly loading is not the way to go using unity).

// requires protected virtual IEnumerable<TextReader> GetInitializeFiles() in Interpreter.cs
class Interpreter2 : Interpreter
{
	public Interpreter2 () : base (null, null)
	{
	}

	protected override IEnumerable<TextReader> GetInitializeFiles ()
	{
		yield break;
	}
}

Interesting that #7 also mentions Scheme for Unity :D

Thanks a lot for this nice interpreter :)

karstenwinter avatar Jun 08 '19 16:06 karstenwinter