[Oz] Hmmm: applying non-procedure and non-object

Mathias.Picker at virtual-earth.de Mathias.Picker at virtual-earth.de
Sun Oct 31 16:14:51 CET 1999


I' m puzzling about the following:

I have an object which has a remote object as attribute, e.g.:

class Connector
attr ro

meth connect(Ticket)
 ro <- {Connection.take Ticket}
end

meth dosomething
 {ro doAnotherThing(SomeData)}
end
end

Compilation gives: 

*** static analysis error ***
applying non-procedure and non-object

I've now resolved to use

meth dosomething
  fun {TmpSend Obj Msg}
   {Obj Msg}
  end
in
  {TmpSend ro doAnotherThing(SomeData)}
end

(I've yet to test this, just hope it works, but at least it compiles :-)

Is there a more elegant solution? Do I do something wrong??


Thanks for listening,

Mathias
-- 
                            virtual earth
 Mathias Picker
 Geschäftsführer      Gesellschaft für Wissens re/prä sentation mbH

                            Mathias.Picker at virtual-earth.de 
			    Fon +49 89  / 540 7425-0
                            Fax +49 89  / 540 7425-9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 286 bytes
Desc: not available
Url : http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/19991031/5046996f/attachment.bin


More information about the mozart-users mailing list