Menu

#89 allow compiling the scripts into memory

None
closed
nobody
9
2016-06-27
2015-09-23
No

helloSqrat has a feature to compile the script into bytecodes to files, but it would be nice to be aible to compile it to string then it can be used later from memory, such as binding it to an executable or something similar

Discussion

  • Wizzard

    Wizzard - 2015-09-23

    I looked at how to code this just now, and it doesn't look too hard.
    You should use sq_writeclosure to do it and sqstd_writeclosuretofile to learn.
    If you get a good implementation, I will add it to the code base.
    This is something that is a tad unnecessary, and so I won't add it myself.

     
  • amir ramezani

    amir ramezani - 2015-09-24

    hi again, this is the code but maybe it is buggy, because i've wrote it very fast, because of my jobs, again thanks

     
  • Wizzard

    Wizzard - 2015-09-24

    Please get the code to compile and test it before I add it in

     
  • amir ramezani

    amir ramezani - 2015-10-02

    hi again, i've coded everything and it works i think, at leest for me and if anything to fix, i'm hear to fix it, but please note i'm new to squirrel, thanks

     
  • Wizzard

    Wizzard - 2016-04-14

    I will add this still if you make it easy on me,
    but I don't feel like doing a diff, pasting the code in, and testing.

     
  • Wizzard

    Wizzard - 2016-06-27
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.