octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accepting arbitrary strings as structure field names


From: Bill Denney
Subject: Re: Accepting arbitrary strings as structure field names
Date: Sat, 04 Nov 2006 21:40:38 -0500
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Rafael Laboissiere wrote:
Would it be acceptable to remove the restriction of structure field names
being valid_identifier?  The benefit of this change is that Octave will have
hash arrays for free, allowing code like this:

    var.("@#$%") = 0;
I'm guessing that this would be pretty hard to do. Is there a reason you couldn't restrict your hashing to use base 52 numbers and map them to [A-Za-z]?

Bill


reply via email to

[Prev in Thread] Current Thread [Next in Thread]