From 965b148d5fdbc5d9f22c7f8a030727d9868f8de9 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:30:02 +0200 Subject: [PATCH] Set publicly used fields `Fn.f` and `FnFdf.fdf` to pub --- func/func.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/func/func.v b/func/func.v index 537281c1a..540eb4ed1 100644 --- a/func/func.v +++ b/func/func.v @@ -13,6 +13,7 @@ pub type VectorValuedFn = fn (x f64, y []f64, params []f64) f64 // Definition of an arbitrary function with parameters pub struct Fn { +pub: f ArbitraryFn @[required] mut: params []f64 @@ -46,6 +47,7 @@ pub fn (f Fn) safe_eval(x f64) !f64 { // Definition of an arbitrary function returning two values, r1, r2 pub struct FnFdf { +pub: f ?ArbitraryFn df ?DfFn fdf ?FdfFn