Steven
>  Am I supposed to =
>  code something like

It's exactly what I do all the time.  


If you are reading this on the REBOL.org mailing list archive, then 90% of 
the code that is displaying the message is in functions inside objects -- eg 
something like:

  do %ml-uf.r       ;; mailing list utility functions
  do %gl-uf.r        ;; general library utility functions

  msg: ml-uf/read-message   ;; get the latest message
  print gl-uf/defuse msg         ;; escape html codes in msg and print
  
We're sort of creating out own vocabulary (read-message, defuse, etc etc) to 
create an API while minimising the chances of any clash of names.


Contexts can (and in my case often do) easily have initialisation code:

  ml-ut: context [
    ml-folder: %../mlf/   
    if not exists? ml-folder [
           ;; code to set the whole thing up
    ]
  read-message: func [.... etc

What they can't have (easily) is termination code -- stuff to flush caches, 
close ports etc. Maybe that'll come with the fabled future modules.

http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlNCMC

Sunanda.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to