Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual FreePro & VXB++ design debugging
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01582710
Message ID:
01582764
Vues:
58
>I would like to welcome people to go to these links and comment here on any items found.
>I will answer questions, but otherwise remain silent.
>I'm just looking for other user input and will not respond.
>

Just some notes I made when reading through this:
http://www.visual-freepro.org/wiki/index.php/VXB%2B%2B
	Sticky parameters
		Initial thought was "ew", but then saw what you proposing. That might actually enable some interesting scenarios where you
		could cache an entire function call (and essentially eliminate it). that would assume no side-effects from the function
		(ex. "pure") and you'd have to capture the returned value as well.
	
LOCAL PERSIST
	I'm assuming these vars are still scoped to the function. Would also expect them to be 
	scoped to the class instance if the function is a method of the class. Big potential
	for memory leaks if in a class; would definitely expect these to be garbage collected
	when the class goes out of scope.

LOBJECT
	Nice. Would be nice if we had something similar to optional parameter arrays like C# to
	make it easy to accept 0+ parameters of some type.

OnCall(), OnSignal(), OnEntry(), and OnExit()
	Nice. Makes things like easy instrumenting, aspects, and perf. monitoring easy.

Multiple RETURNS parameters
	Again, nice. I've wanted this in a few places. In some places I just end up creating
	an empty object and adding the properties, but I always have to be aware of the 
	performance implications of doing this. Or, saving the other items into a property
	of the current class (assuming it is in a class), which works but I'm never really
	thrilled about. 
	
Implicit RETURN parameters
	This seems to address the sticky parameters comment I made.
	
IF..ELSEIF..ELSE..ENDIF
	ELSEIF - nice to have; can make the code a bit cleaner.

XIF..XELSEIF
	So does this do an AND and not an OR? Do they short-circuit?

WITH SET x, SET y, SET
	I like this idea.

ALWAYS BEFORE and ALWAYS AFTER on DO CASE and SWITCH
	Not sure why this is needed. Seems you can get the behavior you want just by putting code before/after the DO CASE.
	Guess this would be used in cases where you RETURN from one of the CASE statements? If so, when does the ALWAYS AFTER
	fire? 
	
DO CASE IF [COND]
	I guess...
	
Explicit Multi-Threading
	What happens to the current datasession scoping in the new thread? Assuming it respects the
	current datasession setting (private vs default) so it wouldn't be visible?
	Would be REALLY nice to pass current datasession and/or a table as a parameter to a function.

http://www.visual-freepro.org/wiki/index.php/VFrP_changes
	Classes
		osarbiter - sounds interesting
		Would be nice to be able to have a mechanism where you can have code called when a method
		doesn't exist. Similar to what you can do with an access/assign on this for a property.
		Enables dynamic methods being added to an existing class.
	Properties
		BindControls
			Not sure how you are going to support the main reason for this property - you have
			bound to a field in a table/cursor but that table/cursor isn't immediately available.
			Are "invalid" bindings just ignored until the time that they might be valid?
		Comment
			You mention all forms are modeless. How do you handle code where you want the code to be
			blocked until the user returns from some form? 
		HWnd
			Not getting a real HWnd kind of defeats the purpose of this, no?
Misc
	Is there going to be the ability to migrate an existing VFP app into VFrP? If so, some of the
	things removed may require a lot of code changes.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform