Am 30.05.2005 um 19:21 schrieb [EMAIL PROTECTED]:
The question is what ns_proc will do if i give wrong type?
Throw error.
Catching all ns_proc calls for exceptions will make code not very
clear?
How typechecks will be enforced?
That is the *exact* reason why you need checks: to throw
The question is what ns_proc will do if i give wrong type?
Catching all ns_proc calls for exceptions will make code not very clear?
How typechecks will be enforced?
Original Message
To: naviserver-devel@lists.sourceforge.net
From: Zoran Vasiljevic <[EMAIL PROTECTED]>
Subject: Re
Am 30.05.2005 um 12:23 schrieb Stephen Deasey:
The other option is -eightbit:flag syntax. It's not perfect, but it's
better than nested lists and has ~5 years of usage in the ACS behind
it.
Another try (I can't just let go) ...
I do not see much sense in trying to keep the Tcl argument lis
Am 30.05.2005 um 12:23 schrieb Stephen Deasey:
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
Well, the above example is wrong. It should be:
ns_proc connect {{{-eightbit flag}} {{-speed list ...
Nested lists are clearly unusable.
They are, indeed, but this is the price for
Am 30.05.2005 um 12:01 schrieb Stephen Deasey:
What's the return value of Ns_FSOpen?
Something that can be fed to Ns_FSRead and/or Ns_FSClose
for example. I haven't started the implementation yet
but this is first what comes to mind.
Presumably, it will be Tcl_Channel in VFS or a regular
OS
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
>
> Am 28.05.2005 um 21:01 schrieb [EMAIL PROTECTED]:
>
> > I like this but can it be list instead of oneof
> >
> > ns_proc connect {{-eightbit flag} {{-speed list {1200 2400 4800}}
> > 4800} {port /dev/ttya}}
> >
>
> Of course it can. But
On 5/30/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
>
> Am 30.05.2005 um 01:59 schrieb [EMAIL PROTECTED]:
>
> > Perfect
> >
>
> Even more "perfect":
>
>instead of compile-time, you could select vfs operation
>as a ns/server config option.
>
> I'd have to write Ns_FSStat, Ns_FSOpen,
Am 30.05.2005 um 01:59 schrieb [EMAIL PROTECTED]:
Perfect
Even more "perfect":
instead of compile-time, you could select vfs operation
as a ns/server config option.
I'd have to write Ns_FSStat, Ns_FSOpen, Ns_FSDirents
etc wrappers *anyway*. So instead of ifdefing pieces of
code in there