@wcross error

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

@wcross error

Postby nupogodi » Sat Oct 04, 2014 3:27 am

@wcross returns an error message when parenthesis are involved and @winterleave results are incorrect

%x = "a b c "

string a = @winterleave("log( log( log(",%x)

%t = @wcross("""log(""", %x)
string b = @wcross(%t, """)""")

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: @wcross error

Postby EViews Gareth » Mon Oct 06, 2014 8:30 am

We'll take a look.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: @wcross error

Postby EViews Gareth » Mon Oct 06, 2014 3:03 pm

@winterleave looks right to me.

@wcross error is a bug. It will be fixed next patch.

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

Re: @wcross error

Postby nupogodi » Mon Oct 06, 2014 11:34 pm

results of @winterleave are different depending on whether the parentheses are present or not - it is a bug. By the way, you could also fix the same bug in other string functions @wsort (wrong order of sorting), @wdelim (produces error message), @wsplit (produces error message)

%x = "a b c "
string a = @winterleave("log log log",%x)
string b = @winterleave("log( log( log(",%x)

'a equals: log a log b log c
'b equals: log( log( log( a "" b "" c

%x = "a b c log( x"
%y = "a, b, c, log("

string s1 = @wsort(%x, "D")
string s2 = @wdelim(%y, ",", "-")
svector s3 = @wsplit(%y, ",")

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: @wcross error

Postby EViews Gareth » Tue Oct 07, 2014 7:40 am

That isn't a bug - all of the W functions treat open parens as part of a word.

"log( log( log(" is all one word. By design.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests