{"size": 1205, "ext": "scrbl", "max_stars_repo_path": "unstable-doc/scribblings/lazy-require.scrbl", "max_stars_repo_name": "racket/unstable", "max_stars_repo_stars_event_min_datetime": "2018-08-24T22:01:32.000Z", "max_stars_repo_stars_event_max_datetime": "2018-08-24T22:01:32.000Z", "max_issues_repo_path": "unstable-doc/scribblings/lazy-require.scrbl", "max_issues_repo_name": "racket/unstable", "max_issues_repo_issues_event_min_datetime": "2020-06-25T14:58:07.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-25T19:01:25.000Z", "max_forks_repo_path": "unstable-doc/scribblings/lazy-require.scrbl", "max_forks_repo_name": "racket/unstable", "max_forks_repo_forks_event_min_datetime": "2015-01-20T15:40:24.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-24T22:01:34.000Z"}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 36.5151515152, "max_line_length": 76, "alphanum_fraction": 0.7012448133}
#lang scribble/manual
@(require scribble/eval
          "utils.rkt"
          (for-label racket/base
                     racket/runtime-path
                     unstable/lazy-require
                     compiler/cm-accomplice))

@title[#:tag "lazy-require"]{Lazy Require}
@deprecated[@racketmodname[racket/lazy-require]]{
The contents of this module, with the exception below, have been merged with
@racketmodname[racket/lazy-require].
}

@defmodule[unstable/lazy-require]

@defform[(begin-on-demand #:export (fun-id ...)
            body ...+)]{

Defines each @racket[fun-id] as a function that, when called,
dynamically loads and executes the @racket[body] forms. The
@racket[body] forms must contain definitions for each @racket[fun-id],
and the value of each @racket[fun-id] must be a function.

A @racket[body] form may be any module-level form except
@racket[provide]. In particular, @racket[require] forms are allowed.

The @racket[body] forms are placed within a submodule that extends the
scope of the enclosing module (ie, @racket[module*] with @racket[#f]
in the language position). Consequently, any references to sibling
submodules must include a with @racket[".."] module path element.
}
