octave-maintainers
[Top][All Lists]
Advanced

[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


reply via email to

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