[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Accepting arbitrary strings as structure field names
From: |
Rafael Laboissiere |
Subject: |
Accepting arbitrary strings as structure field names |
Date: |
Sat, 4 Nov 2006 15:54:23 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 do not know the impact of this change for the internals of Octave. At
least, the command line completion would have to be changed, otherwise
invalid syntax may arise when completing structure field names.
If this is implemented, a new variable named something like
generic_strings_as_field_names_ok could be created, which would default to
the current behavior.
--
Rafael
- Accepting arbitrary strings as structure field names,
Rafael Laboissiere <=
- Re: Accepting arbitrary strings as structure field names, Bill Denney, 2006/11/04
- Re: Accepting arbitrary strings as structure field names, Etienne Grossmann, 2006/11/04
- Re: Accepting arbitrary strings as structure field names, Rafael Laboissiere, 2006/11/05
- Re: Accepting arbitrary strings as structure field names, Rafael Laboissiere, 2006/11/05
- Re: Accepting arbitrary strings as structure field names, Rafael Laboissiere, 2006/11/05
- Re: Accepting arbitrary strings as structure field names, John W. Eaton, 2006/11/10
- Re: Accepting arbitrary strings as structure field names, Rafael Laboissiere, 2006/11/10
- Re: Accepting arbitrary strings as structure field names, John W. Eaton, 2006/11/10
- Re: Accepting arbitrary strings as structure field names, Rafael Laboissiere, 2006/11/11