fixed the wrong core function name in mod/core.c
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a86088045d
commit
433744c33a
@ -350,7 +350,7 @@ static hcl_pfrc_t pf_core_put (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
|||||||
|
|
||||||
static hcl_pfinfo_t pfinfos[] =
|
static hcl_pfinfo_t pfinfos[] =
|
||||||
{
|
{
|
||||||
{ { 'b','a','s','i','c,','_','n','e','w','\0' }, { HCL_PFBASE_FUNC, pf_core_basic_new, 2, 2 } },
|
{ { 'b','a','s','i','c','_','n','e','w','\0' }, { HCL_PFBASE_FUNC, pf_core_basic_new, 2, 2 } },
|
||||||
{ { 'c','l','a','s','s','_','n','a','m','e','\0' }, { HCL_PFBASE_FUNC, pf_core_get_class_name, 1, 1 } },
|
{ { 'c','l','a','s','s','_','n','a','m','e','\0' }, { HCL_PFBASE_FUNC, pf_core_get_class_name, 1, 1 } },
|
||||||
{ { 'g','e','t','\0' }, { HCL_PFBASE_FUNC, pf_core_get, 2, 2 } },
|
{ { 'g','e','t','\0' }, { HCL_PFBASE_FUNC, pf_core_get, 2, 2 } },
|
||||||
{ { 'l','e','n','g','t','h','\0' }, { HCL_PFBASE_FUNC, pf_core_size, 1, 1 } },
|
{ { 'l','e','n','g','t','h','\0' }, { HCL_PFBASE_FUNC, pf_core_size, 1, 1 } },
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
class Apex {
|
class Apex {
|
||||||
fun basicNew(size) {
|
fun :: basicNew(size) {
|
||||||
return (core.basic_new self size)
|
return (core.basic_new self size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,3 +92,7 @@ try {
|
|||||||
printf "EXCEPTION %O\n" e
|
printf "EXCEPTION %O\n" e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
k := (Array:new 10)
|
||||||
|
k:atPut 3 "hello"
|
||||||
|
printf "%O\n" k
|
||||||
|
Loading…
Reference in New Issue
Block a user