m1maker / NGT

New open source game toolkit
https://ngtcode.dev/
MIT License
22 stars 12 forks source link

function duplecation required #14

Closed harrymkt closed 1 month ago

harrymkt commented 8 months ago

function duplecations.

please make like file::write_int, file::write_string, to be only one function (file::write), as bgt. because now, the code may seem more harder than php now. also. file::read_string, to file::read. the read and write functions must only their respective 1 function, and there should not be read_string, read_int.

also, make the string parameter to hold other datatypes, such as ints, floats. string must have hold all other types, including numbers, ints, floats, as of bgt. for example, this fails. but this should not be failed.

void main() { double x=5; alert("ok",x); } error. no such function alert(const string, const double)