Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What do you think of 'Beautify'?
Message
From
04/05/2010 05:13:53
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
04/05/2010 04:34:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01462534
Message ID:
01462950
Views:
64
OK so you accept that at least [] and () are interchangable

No they are not interchangable. They are interchangable for array elemets only. () will not work on strings, while [] will not work on proc / method etc.

No this is not a bug. (At least if we still talk about compile constants in strings). Message#1462690 is a #1 good point.
I mean in
#define Muh Moooh

TEXT TO lcx noshow
Muh
ENDTEXT
? lcx
The string is delimited by Text / Endtext but it accepts constants too.
Again, I see no point to call a feature working for decades a bug. It even allows to check if a constant is defined outside the #IFDEF structs.

That the beautifier (an external tool to the language, even as integrated) has problems with brackets in arrays is an inconvenience, mothing more. A bug is something that stop an app working, and casing is no problem for VFP.

Agnes

>OK so you accept that at least [] and () are interchangable. If yes then that means that you agree that what I said was a bug, no:) It is not an inconvenience, feature or such, it is a bug.
>Cetin
>
>>Good Morning Cetin,
>>
>>don't read me by the words. There is no function definition.
>>
>>It's a bit a joke and a bit of a way to ignore it.
>>
>>In a other language a expression
identifier[n,x]
will be the cell of an array, while
identifier(n,x)
will be a function or method call.
>>
>>a = identifier(x)
>>identifier(x) = a
>>
>>might be the use of a collection.
>>
>>But if you generalize
identifier(x)
as a way to read / write a special item of something no matter how it is defined It is transparent to you what a language does to write or read.
>>
>>So this is what I mean that you might "read"
identifier(x)
as a function.
>>
>>Agnes
>>>>>So what? You cut your way to calling that function and do you think it is my problem? I don't see how using () instead of [] it made anything good to you.
>>>>>Cetin
>>>>
>>>>There is no function. But you might read it as one if you are unable to read it as an array access.
>>>
>>>I am having a hard time to understand you. I don't see what do you mean by "read it as one".
>>>
>>>
Dime FishFingers[10,3]
>>>?FishFingers[1,1]
>>>
>>>
>>>PROCEDURE FishFingers(n,y)
>>>RETURN m.n * m.y
>>>endproc
What does it matter if it were () instead? Would then really the function be called?
>>>Cetin
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform