Comments (4)
This task is likely going to be worked on by richard-roberts for Grace support.
from somns.
Thanks for the initial thoughts here @smarr. In the example you provide above, I am not clear on whether the println
method is an instance method of obj
(the outer object literal) or the inner nested class.
As per the following example, my interpretation is that println
is to be an instance method belonging to the outer object literal (and that the inner nest class is declared simply to show that it is possible to nest classes in object literals). Is this correct?
obj :=
(* Object literal initializer *)
(
|
public field = local.
|
local println.
)
(* Object literal body *)
(
(* A class nested into the object literal's body *)
public class <superclass identifier>()()
(* An instance method of the object literal *)
public println = ( field println. local := local + 1. ).
)
from somns.
I updated my initial example, reformated it, and added a missing closing parenthesis.
The idea was that println
is a method of the object literal defined, which changes the count of local
, which is visible is the subsequent println
.
So, it was supposed to be as you showed in your example, indeed.
(I also gave the inner class a name and fixed its definition.)
from somns.
Implemented with #112.
from somns.
Related Issues (20)
- Method>>invokeOn: primitive likely broken.
- All Blocking Primitives need to interact with Safepoint Logic HOT 1
- Extension documentation is outdated
- Promises: do we remove processed messages from the promise? HOT 2
- Update documentation on setup of SOMns, removing GraalBasic
- Add support for reads from immutable slots/indexes
- No uses of @ReportPolymorphism? HOT 2
- Issue with missing JVMCI and ant clobber HOT 1
- Refactor Native Image Support (SubstrateVM) to avoid hard dependency HOT 2
- Run Unit tests on Substrate VM build HOT 1
- Primary factory method should return a new instance HOT 1
- SOMns command-line interface without launcher script (som-native)
- Building of native image fails if `ant `clobber` has been called HOT 3
- DynamicMetrics Tool Completeness
- SafepointPhaseTest fails in testSafepointStorm HOT 1
- The MaterializedFrame profile is likely a singleton and can be static HOT 1
- Record timer details and enable validation tests for record&replay
- Simplify ObjectModel, and try to get rid of the StorageAccessors again HOT 1
- Revisit the Dynamic Metric tool to use new APIs and avoid custom Truffle patch HOT 1
- Restore coverage tracking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from somns.