work in progress. trying a different way of implementing async socket
This commit is contained in:
@ -373,7 +373,7 @@ moo_pfrc_t moo_pf_basic_at_put (moo_t* moo, moo_ooi_t nargs)
|
||||
|
||||
if (MOO_OBJ_GET_FLAGS_RDONLY(rcv))
|
||||
{
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "now allowed to change a read-only object - %O", rcv);
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "not allowed to change a read-only object - %O", rcv);
|
||||
return MOO_PF_FAILURE;
|
||||
}
|
||||
|
||||
@ -471,7 +471,7 @@ moo_pfrc_t moo_pf_basic_fill (moo_t* moo, moo_ooi_t nargs)
|
||||
|
||||
if (MOO_OBJ_GET_FLAGS_RDONLY(rcv))
|
||||
{
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "now allowed to change a read-only object - %O", rcv);
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "not allowed to change a read-only object - %O", rcv);
|
||||
return MOO_PF_FAILURE;
|
||||
}
|
||||
|
||||
@ -588,7 +588,7 @@ moo_pfrc_t moo_pf_basic_shift (moo_t* moo, moo_ooi_t nargs)
|
||||
|
||||
if (MOO_OBJ_GET_FLAGS_RDONLY(rcv))
|
||||
{
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "now allowed to change a read-only object - %O", rcv);
|
||||
moo_seterrbfmt (moo, MOO_EPERM, "not allowed to change a read-only object - %O", rcv);
|
||||
return MOO_PF_FAILURE;
|
||||
}
|
||||
|
||||
|
@ -71,3 +71,18 @@ binary-argument := expression-primary unary-selector*
|
||||
|
||||
#main
|
||||
|
||||
|
||||
|
||||
================================================
|
||||
#library Dynlib from 'dyn-lib.so' <--- this is a generic shared library
|
||||
{
|
||||
## no instance variables allowed
|
||||
## class-level(static) functions only.
|
||||
int abc (int, float, void*) <--- call this as Dynlib.abc (...). anc proper type conversion back and forth must occur.
|
||||
int abc (int, float, void*) as abc: aaa x: x y: y <--- remap the original name to a moo-style name.
|
||||
}
|
||||
|
||||
#class abc from 'x11.so' <--- this is a moo-only shared library
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user