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 

End of hiatus and a new BEGIN

 
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: 729

PostPosted: Dec 26th, 2015, 5:29pm    Post subject: End of hiatus and a new BEGIN Reply with quote

Hi everyone.

It's been quiet around here for too long. I hope you all have started to recover after Christmas.

Currently I'm trying to recover from a hard drive crash. VF's source files are pretty much up-to-date on the B6SW.COM server. However, I lost all of my workflow-related batch files and will need to rewrite these.

VF's syntax is about undergo a pretty drastic change in a few areas. I've been unhappy with the syntax of the PROPERTY statement and the redundency between the NEW and BEGIN statements.

I gave it some thought and decided to eliminate the BEGIN statement. Its functionality will be subsumed by the NEW statement.
Old BEGIN StatementNew NEW Statement
Begin Menu #File, "File"
"Open", DoOpen
"Exit", DoExit
End Menu
New Menu #File, "File"
Begin
"Open", DoOpen
"Exit", DoExit
End New
Menu #File, "File"
Begin
"Open", DoOpen
"Exit", DoExit
End Menu

The PROPERTY statement will receive a similar treatment.
Old PROPERTY StatementNew PROPERTY Statement
Property FullName As String Does Get, Set
On Get
On Set value
End Property
Property FullName As String Does Get, Set
Begin
On Get
On Set
Ennd Property

In both statements, the BEGIN clause can take optional code. For the NEW statement, BEGIN can be followed by the default class type when the compiler may have trouble inferring the correct type. For the PROPERTY statement, BEGIN can take a parameter list when the property represents an array, and replaces the OPTIONAL clause for this purpose.

So what do you think?

_________________
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