Re: Why am I getting segmentation fault on this code

new topic     » goto parent     » topic index » view thread      » older message » newer message
rneu said...

Surprisingly, I am getting following error with aseq[3, $] :

<0132>:: Syntax error - expected to see possibly ']', not ',' 
aseq = aseq[3, $] 

aseq[3..$] works.

that was a typo:

sequence s = { 1, 2, 3, 4, 5 } 
? s[3..$] 
 
--> {3,4,5} 

_tom

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu