Two Suggests

From: [at]} <tei>
Date: Thu, 7 Dec 2000 15:23:36 +0100 (CET)

//The amethyst.oberon.ch/blackbox/win/Bbox14Beta.EXE file can be
//optimizable:


//( 1:) The save in html:
//generate code like this:

///
<p>&nbsp;&nbsp;&nbsp;<font face="Arial">BEGIN</font></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
face="Arial">StdLog.String(&quot;Hello World&quot;);
StdLog.Ln&nbsp;&nbsp;&nbsp;</font><font face="Arial"><em>(* write string
and 0DX into log *)</em></font></p>
///

//I think that you translate every " " to "&nbsp;"
//Is best to translate " " to " &nbsp;" this make the code more legible
//and preserve bandwidth.

 s ~= / /&nbsp;/g; #actual ineficient code

 s ~= / / &nbsp;/g; #optimized sugest.


//( 2:) Real XML Code:

Actual save in XML code:

MODULE ObxHello0;

        IMPORT StdLog;

        PROCEDURE Do*;
        BEGIN
                StdLog.String("Hello World"); StdLog.Ln (* write string
and 0DX into log *)
        END Do;

END ObxHello0.

//(yes, whitout any tag!)
//Sugest conversion:

<module name=ObxHello0>
 <import>Stdlog<import>
 <procedure name="Do" importable=yes>
    <object name=Stdlog>
      <String>Hello World</String><!-- write string and 0DX into Log -->
      <Ln></Ln>
    </object>
 </procedure>
</module>

This is more near .NET style..








--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Thu Dec 07 2000 - 14:23:36 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC