lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Em qui., 22 de out. de 2020 às 23:14, 孙世龙 sunshilong <sunshilong369@gmail.com> escreveu:
Hi, list

Why does not replace the return value type(i.e. GCobject*) of
luaC_newobj() function with the type of union GCunion* to avoid
Are you suggesting creating a new type?
GCunion* 

calling the explicit cast(i.e. gco2t, gco2p, gco2u and etc.) and make
the code more concise?
Can you elaborate a small example?
 
regards,
Ranier Vilela