Bay Six Software Forum Index Bay Six Software
Beyond the Basics
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing how object members are accessed

 
Post new topic   Reply to topic    Bay Six Software Forum Index -> ViviFire language
View previous topic :: View next topic  
Author Message
Brent
Site Admin


Joined: 01 Jul 2005
Posts: 728

PostPosted: Sep 18th, 2014, 6:08pm    Post subject: Changing how object members are accessed Reply with quote

I've grown tired of the limitations imposed by Carl's object member syntax, so I plan to change it to something a bit more standard. The biggest change is the requirement of a dot (.) to call any named member. The following table summarizes the changes.
New SyntaxOld Syntax/Notes
#obj expressionunchanged
#obj?expressionunchanged; possibly removed
#obj.aProperty#obj aProperty (assignment only)
#obj.aMethod(args)#obj aMethod(args) or #obj!aMethod(args)
#obj.aMethod?#obj aMethod? or #obj!aMethod?
#obj!aKeynone
aStruct.aMemberunchanged

_________________
Brent
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Bay Six Software Forum Index -> ViviFire language All times are GMT
Page 1 of 1
Jump to:  
Quick Reply
Username:
Message:
   Shortcut keys: Alt+Q to activate, Alt+P to preview, Alt+S to submit
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Lo-Fi Version
Powered by phpBB © 2001, 2005 phpBB Group