Private declaration and export correction
ASPL 0.7.0 · Current release
Check private-member, add share to answer, and retry the native program.
On this page
Purpose and preparation
Intentional native checking failure, ASPL 0.7.0. Download the entry and this example's helpers.aspl for English or مساعدات.لبات for Arabic into a separate directory. No input lines or data assets are required. Check and run both fail with status 1, private-member and no output because answer is private.
Install the native toolchain · Follow the practical module guide.
Arabic source
Native only. These are source files, not browser run data.
Execution: Native only · ASPL 0.7.0
- Intentional native checking failure. Keep the entry file beside this example's helpers.aspl.
Input: No input lines are required.
Arabic source · Required source modules, keep each variant in a separate directory:
استورد مساعدات.لبات بسم مكتبة.
دالة ابدأ_الرئيسية() -> ص64 { أرجع مكتبة::جواب(). }
Follow the Linux instructions to run this example. Download the source to keep a copy.
Download الرئيسية.لباتExpected outcomes
{
"native": {
"check": 1,
"status": 1,
"reason": "private-member",
"output": ""
}
}English source
Native only. These are source files, not browser run data.
Execution: Native only · ASPL 0.7.0
- Intentional native checking failure. Keep the entry file beside this example's helpers.aspl.
Input: No input lines are required.
English source · Required source modules, keep each variant in a separate directory:
import helpers.aspl as lib;
fn start_main() -> i64 { return lib::answer(); }
Follow the Linux instructions to run this example. Download the source to keep a copy.
Download main.asplExpected outcomes
{
"native": {
"check": 1,
"status": 1,
"reason": "private-member",
"output": ""
}
}Export the correction
Add share before fn answer in the downloaded helper. Check again: it succeeds. Running the corrected entry returns status 42 with no output. Keep this edited helper in the failed example's directory. For a complete program returning 0 with output, use the separately downloaded corrected module family.
Illustrative fragment
share fn answer() -> i64 { return 42; }Check the result
Source cards show exact catalog outcomes. Downloads retain original bytes, digests and supplied vocabulary.
aspl check main.aspl
aspl run main.aspl