Re: Is subscripting a slice useful

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

On Fri, 8 Oct 2004 16:01:59 -0700, codepilot Gmail Account
<codepilot at gmail.com> wrote:

>Another good thing would be, subscripting inline constants.
>? {"asdf"}[1]
>prints 'a'
Agreed, though you have obviously over-simplified it by using a
literal 1 and adding {}. "asdf"[type] makes sense, if you want to
convert 1..4 into 'a'..'f' inline, without being forced to pre-declare
a constant.

My little pet project, posetf, actually handles this quite naturally,
and to be honest I can't quite see why Rob disallows it, though I
guess we'll all know more when 2.5 Eu in Eu arrives.

Regards,
Pete
My homepage:
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

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

Search



Quick Links

User menu

Not signed in.

Misc Menu