Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

lores:modlink - add new mode with key :boot  #8

@vlad-km

Description

@vlad-km

preface

  • self-starting bundle has one boot function named "any name"
  • modlink when assembling a bandle, receives the symbol of such a function (or lambda). this symbol is added by the last function: (fancall symbol) last in bundle.

source file

(defvar a)
(defparameter b nil)
(defun stage1 () ...)
(defun stage2 () ...)
(defun boot-me()
   (stage1)
   (stage2)
   (setq a <anything>))

bundle structure

(jsheader () {
   (js-code <defvar>)
   (js-code <defparameter>)
   (js-code <stage1>)
   (jscode <stage2>)
   (jscode <boot-me>)
   ;;; next added by key :boot
   (js-code <funcall <boot-me>)}
(jstail)();

modlink key

  • modlink :sysname "sysname.js" :boot 'boot-me | :boot-me

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions