Loading ...
Sorry, an error occurred while loading the content.

compressed commands?

Expand Messages
  • ...Tyrell...
    HiI was wondering about the effects of compressing (nesting) clip commands.I like to for example compress the following lines with the intended result
    Message 1 of 1 , Feb 4, 2002
    • 0 Attachment
      Hi

      I was wondering about the effects of compressing (nesting) clip commands.

      I like to for example compress the following lines with the intended result
      that the code would be faster executed.
      But will it ? (its kind of hard to get a accurate timing result within
      NoteTab for clip commands)
      And might there be some other benefits (or drawbacks) in doing so?, like
      memory use or so.
      One drawback with compressing command is of course LOW readability, but in
      this case that's not an issue.

      ^!Set %var%=^$StrSort(^%var%;0;1;1)$
      ^!Set %var%=^$StrReplace("^%TAB%";" ";^%var%;0;0)$
      ^!Set %var%=^$StrReplace("^%NL%";"";^%var%;0;0)$

      would become

      ^!Set %var%=^$StrReplace("^%NL%";"";^$StrReplace("^%TAB%";"
      ";^$StrSort(^%var%;0;1;1)$;0;0)$;0;0)$



      ???, I also, just for the fun of it, played around with executing commands
      from variable, like

      ^!Set %c1%=Cont
      ^!Set %c2%=inue
      ^!^%c1%^%c2%[zZzZzZz]

      ... Local weather report ... ... ... Readability just droped below
      freezing ... ;-)

      with ^! commands you seems to get away with it. But with ^$ commands like
      ^$StrReplace not.
      any ideas on this point ?

      Cheers
      ...Tyrell...


      _________________________________________________________
      Do You Yahoo!?
      Get your free @... address at http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.