Re: Suggestion: declaring multiple interleaved constant sequences

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

Any thoughts? Has this suggestion already been made, and implemented, and if not, why not?blink

I'm not a fan of your syntax. We do have multi-assignment, though not on declaration. To sort of use your example:

sequence fields, descs 
 
{fields,descs} = {  
    {"signature", "size}, 
    {"(Should be \"Mod\\0\")", "size (in bytes)"} 
  } 
 

That doesn't really do what you're looking for (though Jim already pointed you to columnize()). It's mostly useful when you have a function that returns multiple values.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu