GithubHelp home page GithubHelp logo

$ operator example! about objectscript HOT 4 CLOSED

unitpoint avatar unitpoint commented on August 21, 2024
$ operator example!

from objectscript.

Comments (4)

IngwiePhoenix avatar IngwiePhoenix commented on August 21, 2024

Bump o.o

from objectscript.

unitpoint avatar unitpoint commented on August 21, 2024

ObjectScript has process.exec function to run shell commands, for example:

out = process.exec("gcc -o ${outputName} ${objects}")

if you like $ syntax then use it like this

$ = process.exec
out = $("gcc -o ${outputName} ${objects}")

P.S. don't forget to compile and init process extension (src/ext-process/os-process.cpp, src/ext-process/os-process.h) to use process.exec

P.P.S use C++ void initProcessExtension(OS * os) function to init the extension.

from objectscript.

IngwiePhoenix avatar IngwiePhoenix commented on August 21, 2024

I have seen that. Is there then a way to create an „alias“? I.e.: $ = process.exec ? As I cant use it in variables, I just want to find a good use for it ^^;
Am 12.07.2014 um 22:30 schrieb Evgeniy Golovin [email protected]:

ObjectScript has process.exec function to run shell commands, for example:

out = process.exec("gcc -o ${outputName} ${objects}")

Reply to this email directly or view it on GitHub.

from objectscript.

unitpoint avatar unitpoint commented on August 21, 2024

$ = process.exec means that you assign value of process.exec to variable $. So the $ looks like alias of process.exec in the current situation.

from objectscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.