wsh2: Modules

jBuf

soll direkt concat enthalten!

  • jWrite: st = m.m.stem; ix = m.st.0 ++ ; m.st.ix = line
  • jWriteAll: st = m.m.stem; sx = m.m.stemIx + (m.st.0 > 0); m.m.sx.0 = 'all'; m.m.sx = rdr; sx++; st=m'.'sx; m.st.0 = 0
  • jRead: do forever if m.st.0 == 'all' then jRead(m.st) else if rx++ < m.st.0 .... end oder mit oMutate sodass erste if nicht mehr nötig,
    • aber wie kann man doppelte MethodenSuche verhindern?
    • durch MethodenKombination, bringt Probleme
      • kombinatorische Explosion der MethodenTabellen
      • wenn child mutiert bräuchte es callback!
      • wenn in ursprünglicher Methode return, geht es nicht
      • am effizientesten mit return für true und fallthrough sonst
    • nur zwei mutate: interner stem, oder rdr!

o

standalone ohne class!

  • allen falls lazy initialisation der Vererbung! if symbol ... <> var then if parent <> then paMe = oMet(parent, , ), m.m.met = paMe .....
  • parent link dient auch zum herausfinden, ob initialisiert
  • analog: lazy class method/fields initialisation

pipe, siehe newPipe

  • müssen frame Object sein? wahrscheinlich nicht! use nested memory for frames or and copy it only at pop for allInFrame or reuse frame memory
  • dito (aber wahrschinlich nicht) for output buf and cat