Repository navigation
gateway: overload TRelayRequest.Create for dcc64 - #322
Merged
Merged
Conversation
dcc64 rejects the 4-arg call site in PasClaw.Providers.Relay.pas:307 with E2034 "Too many actual parameters" when the optional ASessionId sits behind a `const string = ''` default. FPC accepts it; Delphi does not. Split into two overloaded constructors -- a 3-arg overload that delegates to the 4-arg form with an empty session id -- so both compilers parse the same call shapes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
This was referenced Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PasClaw.Providers.Relay.pas:307withE2034 Too many actual parameterswhen the optionalASessionIdsits behind aconst string = ''default. FPC accepts both forms, Delphi does not.TRelayRequest.Createinto two overloaded constructors -- a 3-arg overload that delegates to the 4-arg form with an empty session id -- so the call shape compiles on both compilers.Test plan
make all(FPC build clean)make test-relay-queue-- all 18 tests pass, including the 4 sticky-routing tests that exercise the 4-arg call shape🤖 Generated with Claude Code
https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
Generated by Claude Code