Menu

#184 Simplification of operation calls in SOIL (allow to remove redundant 'self')

None
new
nobody
None
normal
feature
Always
SOIL
3.1
2014-08-29
2014-08-29
Anonymous
No

model SoilOpCall_RedundantSelf

class A
operations
opA()
begin end
end

class B
attributes
anA:A
operations
opB()
begin
-- self.anA.opA()
anA.opA()
end
end

-- compiling specification soilOpCall.use...
-- soilOpCall.use:13:2:
-- Could not compile soil defined operation opB()' due to the following error: -- soilOpCall.use:16:4: VariableanA' in expression `anA.opA()' is undefined.

-- mg

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.