how to get arg and print on the output

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get arg and print on the output

stéphane ducasse-2
Hi

I would like to use VW as ruby :) ie I would like to pass a file as  
argument, I know that this is possible
and I should read the manual.

What I do not know is how can I print on stdoutput?
Once roel implemented a primitive for that, is it the only way?
It would be get per default to have that.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: how to get arg and print on the output

Reinout Heeck
On Aug 12, 2006, at 10:36 AM, stéphane ducasse wrote:

> I would like to use VW as ruby :) ie I would like to pass a file as  
> argument, I know that this is possible
> and I should read the manual.


Open the VW setttings tool, see the 'loading' page for hints.

>
> What I do not know is how can I print on stdoutput?
> Once roel implemented a primitive for that, is it the only way?
> It would be get per default to have that.
>

On recent  versions of VW:
   Stdout nextPutAll: 'Helo World'; flush



Reinout
-------
Reply | Threaded
Open this post in threaded view
|

Re: how to get arg and print on the output

stéphane ducasse-2

On 12 août 06, at 11:05, Reinout Heeck wrote:

> On Aug 12, 2006, at 10:36 AM, stéphane ducasse wrote:
>
>> I would like to use VW as ruby :) ie I would like to pass a file  
>> as argument, I know that this is possible
>> and I should read the manual.
>
>
> Open the VW setttings tool, see the 'loading' page for hints.
>
>>
>> What I do not know is how can I print on stdoutput?
>> Once roel implemented a primitive for that, is it the only way?
>> It would be get per default to have that.
>>
>
> On recent  versions of VW:
>   Stdout nextPutAll: 'Helo World'; flush

excellent!!!

>
>
>
> Reinout
> -------
>

Reply | Threaded
Open this post in threaded view
|

Re: how to get arg and print on the output

Charles A. Monteiro-2
or alternatively:

Stdout nextPutAll: 'Helo World';cr.

i.e. if one wants to maintain the "normal" semantics for text streaming.

Note, that it won't do any spell checking for you :)

So question, is there a way of using a Windows console i.e. a cmd and  
somehow hook up the Stdout calls to it for display?

and of course pardon the silly question , my background was deprived of  
things like Stdins and outs.

tia,

-Charles

On Sat, 12 Aug 2006 05:34:55 -0400, stéphane ducasse  
<[hidden email]> wrote:

> Stdout nextPutAll: 'Helo World'; flush



--
Charles A. Monteiro
http://wiki.nycsmalltalk.org
http://www.monteirosfusion.com
http://monteirofusion.blogspot.com

Reply | Threaded
Open this post in threaded view
|

Re: how to get arg and print on the output

Dave Stevenson-2
There should be a way - use bin\win\vwntconsole.exe, and see chapter 19
and appendix C of AppDevGuide.pdf

Dave

Charles A. Monteiro wrote:

> or alternatively:
>
> Stdout nextPutAll: 'Helo World';cr.
>
> i.e. if one wants to maintain the "normal" semantics for text streaming.
>
> Note, that it won't do any spell checking for you :)
>
> So question, is there a way of using a Windows console i.e. a cmd and
> somehow hook up the Stdout calls to it for display?
>
> and of course pardon the silly question , my background was deprived of
> things like Stdins and outs.
>
> tia,
>
> -Charles
>
> On Sat, 12 Aug 2006 05:34:55 -0400, stéphane ducasse
> <[hidden email]> wrote:
>
>> Stdout nextPutAll: 'Helo World'; flush
>
>
>
> --Charles A. Monteiro
> http://wiki.nycsmalltalk.org
> http://www.monteirosfusion.com
> http://monteirofusion.blogspot.com
>
>