Numeric conversion trap
ASPL 0.7.0 · Current release
Complete source and a checked ASPL 0.7.0 outcome.
On this page
Purpose and outcome
Checking succeeds; explicit u8 or ط8 conversion of 256 then traps with invalid-numeric-conversion. Native status is 5 and there is no output.
See Exact numeric family.
Arabic source
This is a supplied complete source. Opening creates a new draft; Run requires an explicit action.
Execution: Browser and native · ASPL 0.7.0
Prerequisites:
- No prior knowledge is required to open and check it.
Input: No input lines are required.
دالة ابدأ_الرئيسية() -> ص64 {
دع بايت: ط8 = ط8(256).
اطبع(نسق_ط8(بايت)).
أرجع 0.
}
Expected outcomes
{
"browser": {
"check": "success",
"class": "trap",
"reason": "invalid-numeric-conversion",
"output": ""
},
"native": {
"check": 0,
"status": 5,
"reason": "invalid-numeric-conversion",
"output": ""
}
}English source
This is a supplied complete source. Opening creates a new draft; Run requires an explicit action.
Execution: Browser and native · ASPL 0.7.0
Prerequisites:
- No prior knowledge is required to open and check it.
Input: No input lines are required.
fn start_main() -> i64 {
let byte: u8 = u8(256);
print(format_u8(byte));
return 0;
}
Expected outcomes
{
"browser": {
"check": "success",
"class": "trap",
"reason": "invalid-numeric-conversion",
"output": ""
},
"native": {
"check": 0,
"status": 5,
"reason": "invalid-numeric-conversion",
"output": ""
}
}Check the result
The source card shows hosts, input, and expected outcomes from the canonical catalog. Reading language changes neither source nor result.