GithubHelp home page GithubHelp logo

Comments (2)

evincarofautumn avatar evincarofautumn commented on June 8, 2024

Sounds good to me. IIRC I had this in mind to support the “domain locks” in Mono, where each MonoDomain has its own associated global lock. It’s just a matter of getting around to it…

I like the idea of supporting return to annotate the result value of a function, although it might be kinda fiddly to propagate that info up the call tree.

Have to check if this is allowed, but for annotations pertaining to parameters, I wonder if we could support attributes on the parameters themselves, e.g.:

WARD(grant(may_take_capability_lock(return)))
Capability *get_capability(
  int i,
  Capability *caps[i] WARD(need(may_take_capability_lock))
) {
  return caps[i];
}

from ward.

bgamari avatar bgamari commented on June 8, 2024

Have to check if this is allowed, but for annotations pertaining to parameters, I wonder if we could support attributes on the parameters themselves, e.g.:

I think I would actually prefer to keep the annotation on the function. Afterall, a permission may in fact have more than one parameter, allowing one to represent relations between multiple terms in the source program (e.g. the Task/Capability example given in the description).

from ward.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.