It is currently Sat May 25, 2013 5:02 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Nested With
PostPosted: Tue Feb 21, 2012 1:02 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:58 pm
Posts: 205
Hi there,
hope, I am not bombing you too much with feature requests, but I'm working with PB all day,
so I find some more things that could be optimized than I did as a hobbyist

This one's a minor one and it's just for comfort, so priority is below "MultiDimensional Array in Structures" for me.
Nested With
First the definitions:
Code:
Structure MyInnerStruct
   value1.l
  value2.l
EndStructure

Structure MainStruct
   name.s
  values.MyInnerStruct
EndStructure

Global Main.MainStruct


Now, currently I would fill that like this:
Code:
With Main
  \name=test
  \values\value1=5
  \values\value2=7
EndWith


or like this
Code:
With Main
  \name=test
EndWith
With Main\values
  \value1=5
  \value2=7
EndWith



So, what would work against Nested With:

Code:
With Main
  \name=test
  With \values
        \value1=5
        \value2=7
  EndWith
EndWith


To be true, it doesn't look that comfortable by now, but it's just a short example, so just imagin this with 5 or 6 SubStructures and some more Structure Members.

Additional to the intern "This is to replace the '\' with: 'Main\'"-Variable, the compiler would just need some kind of Stack to know, what part of the replacetext should be removed from this variable, when EndWith is called.

So far

Franky

_________________
Give Up everything but trying!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye