No secret, the cvsstream class overrides the string method to display the
name of the file.  This is working perfectly fine.

Rick

On Thu, Mar 7, 2013 at 8:30 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:

> It seems impossible to pass a .csvStream object from one method to
> another, as shown by the code below:
>
> a=.a~new
>
> ::class a
> ::method init
> f="file1.csv"
> csv=.csvStream~new(f)
> self~sayit(csv)
>
> ::method sayit
> use strict arg csv
> say csv
>
> ::requires "csvstream.cls"
>
> The say statement displays "file1.csv" instead of "A csvStream object".
> What's the secret?
>
> Staffan
>
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to