Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Programming Mess
Message
De
14/05/2013 05:26:07
 
 
À
14/05/2013 03:17:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01572688
Message ID:
01573753
Vues:
97
>>>vfp has quite a dose of prototypical behaviour if compared with a more strict class based language like java...
>>
>>can you expand on that? not sure I get it ...
>>thanks
>
>ADDPROPERTY() springs to mind...

In VFP you can ADDPROPERTY() at the object level, in JavaScript you can ADDPROPERTY() and even ADDMETHOD() at the global native level:

if you write (JavaScript)
String.prototype.test = 'test';
String.prototype.rTrim = function() {some code};
Any string you create afterwards will inherit from this 'method'
'myString'.test;
'myString'.rTrim();
prototype.js (http://prototypejs.org/) is all based on that, with pros and cons
Some love, some hate prototype.js ... at least people enjoy their freedom of speech ... another reason for me to enjoy the JavaScript culture.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform