Skip to content

Conversation

@dmchaledev
Copy link
Contributor

… object

The Katspeak runtime was unable to resolve DREAD_Log, DREAD_LogError, and DREAD_LogDebug functions because they were defined with 'let' (local scope) and closures don't capture outer scope variables properly in Catspeak.

Fix: Move logging functions to be methods on the DREAD object itself:

  • DREAD_Log() -> DREAD.Log()
  • DREAD_LogError() -> DREAD.LogError()
  • DREAD_LogDebug() -> DREAD.LogDebug()

This ensures the functions are globally accessible wherever the DREAD object is accessible, fixing the runtime error at line 1400.

… object

The Katspeak runtime was unable to resolve DREAD_Log, DREAD_LogError, and
DREAD_LogDebug functions because they were defined with 'let' (local scope)
and closures don't capture outer scope variables properly in Catspeak.

Fix: Move logging functions to be methods on the DREAD object itself:
- DREAD_Log() -> DREAD.Log()
- DREAD_LogError() -> DREAD.LogError()
- DREAD_LogDebug() -> DREAD.LogDebug()

This ensures the functions are globally accessible wherever the DREAD
object is accessible, fixing the runtime error at line 1400.
@dmchaledev dmchaledev marked this pull request as draft December 29, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants