Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Warning: Square brackets as string delimiters
Message
 
 
À
11/12/2007 13:38:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01274862
Message ID:
01274872
Vues:
7
>Recently I have seen a lot of people are using square brackets as string delimiters. That made me think most of the community isn;t aware of this fact.
>When you use square brackets and there is #define/#include in scope those strings might end with something very different than you expected. ie:
>
>
>#define error 1
>
>? 'An error has occurred'
>? [An error has occurred]
>
>Bottomline: Use single or double quotes as string delimiters unless you know what you're doing with square brackets.
>Cetin

#define message 'warning'

Good [message] <g>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform