Author: atsushi
Date: 2007-06-06 09:42:37 -0400 (Wed, 06 Jun 2007)
New Revision: 78735

Modified:
   
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ChangeLog
   
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ErrorHandler.cs
   
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/SilverlightPAL.cs
Log:
2007-06-06  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * ErrorHandler.cs
          SilverlightPAL.cs : some comments.



Modified: 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ChangeLog
===================================================================
--- 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ChangeLog
 2007-06-06 13:21:33 UTC (rev 78734)
+++ 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ChangeLog
 2007-06-06 13:42:37 UTC (rev 78735)
@@ -1,3 +1,8 @@
+2007-06-06  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * ErrorHandler.cs
+         SilverlightPAL.cs : some comments.
+
 2007-06-02  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * ErrorHandler.cs HtmlDocumentMemberInjector.cs

Modified: 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ErrorHandler.cs
===================================================================
--- 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ErrorHandler.cs
   2007-06-06 13:21:33 UTC (rev 78734)
+++ 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/ErrorHandler.cs
   2007-06-06 13:42:37 UTC (rev 78735)
@@ -7,11 +7,17 @@
                [MonoTODO]
                public static void DisplayError (Exception e)
                {
+                       throw new NotImplementedException ();
                }
 
                [MonoTODO]
                public static void DisplayError (Exception e, string errorType)
                {
+                       // we could use HtmlPage.Document and populate error 
contents
+                       // (<div><h2>message</h2><p><b>Exception details:</b> 
details</p></div>),
+                       // but that'd be probably better done at client side
+                       // with just some JS call.
+                       throw new NotImplementedException ();
                }
 
                [MonoTODO]

Modified: 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/SilverlightPAL.cs
===================================================================
--- 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/SilverlightPAL.cs
 2007-06-06 13:21:33 UTC (rev 78734)
+++ 
trunk/olive/class/Microsoft.Scripting.Silverlight/Microsoft.Scripting.Silverlight/SilverlightPAL.cs
 2007-06-06 13:42:37 UTC (rev 78735)
@@ -5,59 +5,72 @@
 
 namespace Microsoft.Scripting.Silverlight
 {
+       // Actually I doubt that IronPython 2.0alpha1 can create this instance 
+       // according to the constructor sequence:
+       //      ScriptDomainManager.CurrentManager
+       //      -> .TryCreateLocal(null,out manager)
+       //      -> .GetSetupInformation()
+       //         returns new ScriptEnvironmentSetup(true)
+       //      -> .ctor(setup[above])
+       //      -> setup.CreatePAL()
+       //      -> Utils.Reflection.CreateInstance<PAL>(PALType)
+       //
+       // In the sequence above, there is no chance to set this type during
+       // the instantiation process of ScriptDomainManager.CurrentManager.
+
        public class SilverlightPAL : PlatformAdaptationLayer
        {
                [MonoTODO]
                public override bool DirectoryExists (string path)
                {
-                       throw new NotImplementedException ();
+                       return base.DirectoryExists (path);
                }
 
                [MonoTODO]
                public override bool FileExists (string path)
                {
-                       throw new NotImplementedException ();
+                       return base.FileExists (path);
                }
 
                [MonoTODO]
                public override string [] GetFiles (string path, string 
searchPattern)
                {
-                       throw new NotImplementedException ();
+                       return base.GetFiles (path, searchPattern);
                }
 
                [MonoTODO]
                public override string GetFullPath (string path)
                {
-                       throw new NotImplementedException ();
+                       return base.GetFullPath (path);
                }
 
                [MonoTODO]
                public override Assembly LoadAssembly (string name)
                {
-                       throw new NotImplementedException ();
+                       return base.LoadAssembly (name);
                }
 
                [MonoTODO]
                public override Stream OpenInputFileStream (string path)
                {
-                       throw new NotImplementedException ();
+                       return base.OpenInputFileStream (path);
                }
 
                [MonoTODO]
                public override Stream OpenOutputFileStream (string path)
                {
-                       throw new NotImplementedException ();
+                       return base.OpenOutputFileStream (path);
                }
 
                [MonoTODO]
                public override void TerminateScriptExecution (int exitCode)
                {
-                       throw new NotImplementedException ();
+                       base.TerminateScriptExecution (exitCode);
                }
 
                [MonoTODO]
                public override System.Action<System.Exception> 
EventExceptionHandler {
-                       get { throw new NotImplementedException (); }
+                       get { return base.EventExceptionHandler; }
                }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to