WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit bdd1dce5 authored by Kunshan Wang's avatar Kunshan Wang
Browse files

Updated the Factorial program to use idOf and nameOf, too.

parent df65c319
......@@ -11,14 +11,12 @@ object FactorialFromRPython extends App {
// Magical trick. Theoretically the client would publish bundles as binary and knows all the IDs. But in this version
// only the text form is supported and IDs are automatically generated. So we look into the globalBundle itself.
val m = ca.putFunction(microVM.globalBundle.funcNs("@main").id)
val m = ca.putFunction(microVM.idOf("@main"))
microVM.trapManager.trapHandler = new TrapHandler {
override def handleTrap(ca: ClientAgent, thread: Handle, stack: Handle, watchPointID: Int): TrapHandlerResult = {
val curInst = ca.currentInstruction(stack, 0)
val trapName = microVM.globalBundle.varNs(curInst).name.get
val trapName = microVM.nameOf(curInst)
if (trapName == "@main_v1.main_trap") {
val kas = ca.dumpKeepalives(stack, 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment