VXCMD local and remote together

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Feb 19 10:28:35 CST 2004


on 2/18/04 10:54 PM, Robert Brenstein at rjb at rz.uni-potsdam.de wrote:

>>>  Besides, even when switching, at least in MC/Rev making a global
>>>  rename of function call is not a big deal. And having functions that
>>>  explicitely remind us whether they work locally or remotely makes
>>>  more self-documenting code.
>> 
>> Okay.
>> 
>> Function
>> 
>>     Cursor_GetRecordCount()
>> 
>> Why you must differ it for LOCAL and REMOTE???
>> 
>> Its logic is the same for all modes.
>> And name must be the same.
>> 
>> And this is true for 99% of method IMHO.
>> 
>> Only BIG difference -- Database object creation.
>> 
> 
> But, but, but... Ruslan... you talk at a different level now. Kernel
> functionality is one thing, calling it from Transcript is another.

No I have talk about VXCMD!

> Nobody said there should be a difference with syntax of kernel
> functions. What we talk about is the transcript-level coding. Using
> your example above:
> 
> in local mode
> 
> get Valentina("Cursor_GetRecordCount",cursorRef)
> 
> in client-server mode
> 
> get Valentina_Server("Cursor_GetRecordCount",cursorRef)

Robert, and this is wrong.

Doing it in THIS way, you already cannot write SINGLE algorithm
In VXCMD which will work with ANY cursor LOCAL or REMOTE.

on print_records()
  
    get Valentina("Cursor_GetRecordCount",cursorRef)
  
    ....
end  


If follow to your idea you will MUST to have second algorithm

on print_records()
  
    get Valentina_Server("Cursor_GetRecordCount",cursorRef)
  
    ....
end  


Robert, this is totally wrong !!!!

Valentina 2.0 must allow write SINGLE algorithm.
And I can do this.

And this is target of all program languages!

    DO NOT MAKE CODE DOUBLE.

Robert, believe me, this is wrong idea.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list