Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » naming and scopes
naming and scopes [message #879441] Thu, 31 May 2012 08:24 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi,

I thought I had understood this finally, but now I am less sure about that Smile

What I did was implement an IQualifiedNamingProvider that builds an unique name for all elements that can be referenced. Now, when I did that, I realize that I might not need scopes because if all names are unique they can sit safely in the global space.

Is this a reasonable way to handle things, or will there be problems later on?

best regards,
Vlad
Re: naming and scopes [message #879444 is a reply to message #879441] Thu, 31 May 2012 08:32 Go to previous messageGo to next message
Alex Tugarev is currently offline Alex TugarevFriend
Messages: 14
Registered: July 2011
Junior Member
Hi Vlad,

please read the following blog posts about scoping: blogs.itemis.de/stundzig/archives/773

Regards,
Alex

[Updated on: Thu, 31 May 2012 09:18]

Report message to a moderator

Re: naming and scopes [message #879465 is a reply to message #879444] Thu, 31 May 2012 09:18 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Thanks Alex, I have that on paper in front of me Smile

The reason I asked was because the result doesn't feel quite right, I shouldn't have to recreate the scoping framework. So there is something that I am missing from the picture, but I'm not sure what that is.

It's possible that I got carried away and gave names to things that are actually scopes.

best regards,
Vlad
Previous Topic:Language and IGenerator in different Projects
Next Topic:Stop refresh process for outline view if syntax errors are present
Goto Forum:
  


Current Time: Fri Mar 29 14:32:16 GMT 2024

Powered by FUDForum. Page generated in 0.02118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top