Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L ldpl
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lartu
  • ldpl
  • Issues
  • #60

Closed
Open
Created Apr 22, 2019 by Lartu@lartu🐕Maintainer

EXTERNAL SUB-PROCEDURE

Created by: Lartu

Hello there, @dvkt! Yesterday I added EXTERNAL SUB-PROCEDURE to the language. Essentially it's a way to declare functions that have been forward declared in C++, so I can call LDPL functions from C++.

So in C++ I can, for example, do this:

LDPL_SUBPROCEDURE();

void myFunction(){
  LDPL_VAR = 18;
  LDPL_SUBPROCEDURE();
}

And in LDPL I do:

data:
ldpl-var is external number

procedure:
external sub-procedure ldpl/subprocedure
  display "My number is " ldpl-var
end sub-procedure

I want to know what do you think about this. I made an IRC bot library for LDPL that I'll be uploading today and I needed this for that to work.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking