Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: John G Harris Newsgroups: comp.lang.javascript Subject: Re: Javascripts and highlevel computer language programming of graphics Date: Mon, 24 Apr 2017 11:09:02 +0100 Organization: A noiseless patient Spider Lines: 36 Message-ID: References: <03b9843f-a669-4e7b-b18d-bd2bd7240e16@googlegroups.com> <013aedad-faa3-4207-92bf-6c18ef764969@googlegroups.com> <3191717e-3652-45ad-a526-86f07b74f6d5@googlegroups.com> <9depfctc9stkatqhtk8b5g6v8g754bda0u@4ax.com> <72f890c2-011a-4732-91ab-defcaaf350ce@googlegroups.com> Reply-To: jgharris@ic4life.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="a1e05c0c209c544877376e2bc7d623b2"; logging-data="30094"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rHT/hPADDtXa/dKCrWJeGbw+5JQTdr1s=" User-Agent: ForteAgent/7.00.32.1200 Cancel-Lock: sha1:5ZVUkOe9YkTTcTaDP2g2+VJNcYM= Xref: csiph.com comp.lang.javascript:33100 On Sun, 23 Apr 2017 09:57:55 -0700 (PDT), jonas.thornvall@gmail.com wrote: >Den söndag 23 april 2017 kl. 18:47:14 UTC+2 skrev jonas.t...@gmail.com: >> I think i can wrap my head around it, so the alert could be the redraw >> and the functions could be the array objects,arrayelements that is called, >> it is a smart approach i like it. Is this a javascript only feature or >>is similar approach allowed in C++ and JAVA? C++ : Yes, Java : Sort of. >> Would it seem correct to build up an array with the functions you want >> called, so i use the user inputs "and my knowledge of draworder", to build >> up the array and the functions to be called/stepped thru "for my purpose"? >> Have i understood it correct? You can build the array and use it any way you like, just like any other array. >Actually it is just what i wanted i just was not aware it was a part of >javascript, the array elements are functions that can be called fantastic i >think. When was this introduced into Javascript, i like functions as parameters >to other functions "sort of". Functions in ECMAScript have always been Function Objects. They can be put anywhere an object can be put. The difference from other kinds of object is that if b contains a Function Object you can call the function by doing b() [with whatever is needed inside the brackets of course]. John