Jump to content

"inline" Keyword?

Recommended Posts

Inline is interesting but we have no immediate plans for it. The way JS contexts work makes sub-procedures and anonymous procedures more or less the same thing. Macros in the C/C++ style or templates is much more interesting.

Procedure TForm1.Something;
  x, y, z: integer;
  procedure SomethingElse(const CB: TProcedureRef);
  	if assigned(CB) then
   SomeThingElse( procedure ()
       writeln("Not sure we need inline under JS");


Link to post
Share on other sites

OK. More curious than anything.

I'm porting an old ANSI C game into SMS (with Node.JS), and I had to sub in functions to mimic some C macro #defines. They're generally one-liners, so inline made sense. As the project continues, though, they'll likely be refactored out.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...