# verbing properties (Bb's call)

slayer@kaiwan.com (slayer@kaiwan.com)
Mon, 1 Apr 1996 18:50:22 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    At 06:33 PM 4/1/96 PST, Richard Godard wrote:
    >At 20:48 4/1/96,  (Seth I. Rich) wrote:
    >>  function set_property_value(OBJ object, STR property-name, value)
    >>  Sets <object>.<property-name> to <value>, if it exists and is
    >>  writable with the programmer's permissions, else returns E_PERM
    >>  or E_PROPNF or E_INVIND as appropriate.  Handles built-in
    >
    >Would this solve the problem ?
    >... else raise E_PERM  or E_PROPNF or E_INVIND...
    >
    >so set_property_value(me, "description", E_PERM) => return E_PERM
    >and set_property_value(me, "location", E_PERM) => raise E_PERM
    >
    >Since all verb should be +d, only catching the error would be needed :-)
    >
    yeah but..
    `raise(E_PERM) ! E_PERM' -> E_PERM
    `E_PERM ! E_PERM' -> E_PERM

    how would you differentiate between a caught error and a return value?
    maybe something like what eval returns.. {success, result} where success is
    0 or 1 depending on success.