[clean-list] I cannot use pst.ls

Ferreira Maurizio maurizio.ferreira at seling.it
Mon May 9 17:02:03 MEST 2011


In the following test, I cannot use pst.ls
I suppose it should be the value used to initialize the process state (e.g. "ps")
The compiler complains about "setControlText id2 pst.ls" (near the end of the program)
whith the error:

Uniqueness error [hello.icl,27,pst]" demanded attribute cannot be offered by shared object

Any suggestion ?
(BTW, is there somewhere an explanation of error messages ?)


Regards.
Maurizio.

module hello

import StdEnv, StdIO

Start world
  #(ids,world) = openIds 2 world
  = startIO NDI "ps" (snd o openDialog 1 (hello ids) ) [ProcessClose closeProcess] world

where

  hello [id1,id2] = Dialog "My dialog"
          (TextControl "00" [ControlId id1]
          :+:
          TextControl "00" [ControlPos (Left, zero), ControlId id2]
          :+:
          ButtonControl "ok" [ ControlPos (Left, zero)
                             , ControlViewSize {w=75, h=23}
                             , ControlFunction (doit [id1,id2])
                             ]
          )
          [ WindowClose  (noLS closeProcess)
          , WindowViewSize {w=150, h=90}
          , WindowPos (Fix, OffsetVector {vx=400, vy=350})
          ]

  doit [id1,id2] (lst,pst)
    = (lst+1, appListPIO [(setControlText id1 (toString lst))
                         ,(setControlText id2 pst.ls)
                         ] pst)


-------------- next part --------------


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

Il presente messaggio, corredato dei relativi allegati, contiene informazioni da considerarsi strettamente riservate ed ? destinato esclusivamente al destinatario sopra indicato, il quale ? l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilit?, diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo leggesse senza esserne legittimato ? avvertito che trattenerlo, copiarlo, divulgarlo, distribuirlo a persone diverse dal destinatario ? severamente proibito, ed ? pregato di rinviarlo immediatamente al mittente distruggendone l'originale. 


This message, together with its annex(es), contains information to be deemed strictly confidential and is destined only to the addressee(s) identified above who only may use, copy and, under his/their responsibility, further disseminate it. If anyone received this message by mistake or reads it without entitlement is forewarned that keeping, copying, disseminating or distributing this message to persons other than the addressee(s) is strictly forbidden and is asked to transmit it immediately to the sender and to erase the original message received.



More information about the clean-list mailing list