Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why one code works, while other doesn't?
Message
De
23/01/2001 00:38:24
 
 
À
22/01/2001 17:13:54
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00466654
Message ID:
00467135
Vues:
31
>Besides, I always thought that all the string chopping functions (left, right, substr()) are internally done as Stuff() with special parameters.

You might be right, but that would surprise me. In most languages a lot of care is taken with low-level string functions to make them run as fast as possible. I'd bet the C equivalents of LEFT(), RIGHT() and SUBSTR() are (a lot?) faster than a general-purpose STUFF(). If I was a language designer I wouldn't want to burden those functions with unnecessary overhead.

This is just a SWAG, I haven't actually tested in VFP (or C)...
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform