HasAScope

ThoughtStorms Wiki

I'm thinking a lot about the need for a "has-a" scope in programming languages.

Something like :

[

interface Student { public: String name;

owned_by : School mySchool;

}

class AStudent implements Student {

void describe() { println("My name is " + name); println("I am studying at " + mySchool.name); } }

elsewhere ...

Student s = new Student("John") ownedby sussexuniversity;

]

LinkBin

{=LinkBin=}

Added 2018-09-04 : Originally Added 2018-07-31 : http://homepages.ecs.vuw.ac.nz/~servetto/Fool2014/FundationForObjectAspectAndContextOrientedProgramming

No Backlinks