2019-09-12 10:33:56 -07:00
|
|
|
import extensions;
|
2017-09-23 10:01:46 +02:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
public singleton program
|
2017-09-23 10:01:46 +02:00
|
|
|
{
|
2019-09-12 10:33:56 -07:00
|
|
|
inner()
|
|
|
|
|
{
|
|
|
|
|
console.printLine(new CallStack())
|
|
|
|
|
}
|
2017-09-23 10:01:46 +02:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
middle()
|
|
|
|
|
{
|
|
|
|
|
self.inner()
|
|
|
|
|
}
|
2017-09-23 10:01:46 +02:00
|
|
|
|
2019-09-12 10:33:56 -07:00
|
|
|
outer()
|
|
|
|
|
{
|
|
|
|
|
self.middle()
|
|
|
|
|
}
|
2017-09-23 10:01:46 +02:00
|
|
|
|
|
|
|
|
// program entry point
|
2019-09-12 10:33:56 -07:00
|
|
|
closure()
|
|
|
|
|
{
|
|
|
|
|
program.outer()
|
|
|
|
|
}
|
|
|
|
|
}
|