Skip to content

[Correction] §18.4 — Dynamic loading example assigns to @MyFunc, an invalid l-value #42

Description

@NickHodges

Section: §18.4 Dynamic Loading

Current text:

@myfunc := GetProcAddress(LibHandle, 'MyFunc');

Problem:
This is invalid Pascal. You cannot assign to @X — the @ operator produces an r-value pointer, not an assignable l-value. The correct code assigns directly to the procedural variable.

Suggested fix:

MyFunc := GetProcAddress(LibHandle, 'MyFunc');

Activity

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

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions