JuliaPluto/Pluto.jl

`local function` works, but leads to multiple definitions error

クローズ

#3,545 opened on 2026/05/12

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (329 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (5,295 個のスター)
PR merge metrics
 (平均マージ 5d 12h) (30d で 13 merged PRs)

説明

A cell in pluto:

begin
    local function f(x)
        x^3
    end
    f(2)
end

This runs as expected and f is not available outside the begin-block, but if another cell also defines local function f(), I still get a Multiple definitions for f error.

コントリビューターガイド