Skip to content

SET PROCEDURE: routines in procedure files are not found #3

Closed

Description

@jefflroberts

SET PROCEDURE TO lib is accepted and ignored today, so a bare call to a routine in lib.prg fails with "not found". Real applications depend on it from their first line: a CodeMine application's main program runs SET PROCEDURE TO Codemine and then calls CreateGlobalObject(...), and stops there.

I'm planning to take this on as a piece of system 3 in the parity plan, the name resolver. The scope:

  • SET PROCEDURE TO a[, b ...] [ADDITIVE], RELEASE PROCEDURE, and what SET("PROCEDURE") answers
  • the search order for a bare DO x or x(): the current program, procedure files in load order, then a program file on the path
  • probably DO: prg name concatenation doesn't work #1 as well, since a program name built by an unbracketed expression after DO is the same question of how DO reads its name

Each behavior gets measured against vfp9.exe first, with a golden, following the parity plan's method. I'm posting this so nobody duplicates the work, and so there's room to say early if you'd rather it went a different way.

🤖 Generated with Claude Code

Activity

  1. RandomChirp commented on Sep 23, 2026

    @RandomChirp
    Contributor

    @jefflroberts agree, I am more than happy if you want to spearhead this 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions