Details
Description
The following script demonstrates the problem with the System.Resources::ResourceReader and System.Resources::ResourceWriter included in the .NET 2.0+ Base Class Library:
{{import System}}
{{import System.IO}}
{{import System.Resources}}
{{import System.Text}}
{{using ms = MemoryStream(Encoding.UTF8.GetBytes("Parent, may I?")):}}
{{ using writer = ResourceWriter("mother-may-i.resources"):}}
writer.AddResource("mami?", ms)
writer.Close()
{{using writer = ResourceWriter("father-may-i.resources"):}}
{{ using reader = ResourceReader("mother-may-i.resources"):}}
for res in reader:
writer.AddResource("papi?", res.Value)
reader.Close()
writer.Close()
This means that, given any .resources file with a MemoryStream saved to it, the Boo compiler will fail because of code similar to this in the FileResource.cs of Boo.Lang.Compiler. The submitted patch allows for the Boo compiler to include the resources from such .resources files. For those that want to use Boo in their compiled XAML development, this functionality is necessary.
For further information regarding this issue, I've finished a thread on the BooLang group list at <http://groups.google.com/group/boolang/browse_frm/thread/7b244c6e6c3807e>.
Must have patch
.