Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Java compatibility issues (WAS: MF having issues?)
Frank Swarbrick wrote:
> Anyone for "associate arrays"?
>
> In the language D you can do the following:
>
> int[char[]] b;		// associative array b of ints that are
> 			// indexed by an array of characters.
> 			// The KeyType is char[]
> b["hello"] = 3;		// set value associated with key "hello" to 3
> func(b["hello"]);	// pass 3 as parameter to func()
>
> This is from http://www.digitalmars.com/d/arrays.html#associative if you'r
e
> interested.  What I like about it is it's directly supported by the
> language.
<snip>

If you look at the listing I gave Oliver of the M/F Collection
hierarchy, you will see references to classes on Arrays. No idea if
people use them much. (Yes, they are used indirectly to support 'true'
Collection classes). But the important factor is your, "What I like
about it is it's directly supported by the language".

Perhaps it can be achieved using M/F methods - but if you look at the
proposed Class Structure for Collections drafted by J4 (Standards) - you
are SOL. Just don't hold your breath that this structure will be
expanded any time soon.

Jimmy

Report this thread to moderator Post Follow-up to this message
Old Post
James J. Gavan
03-09-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:55 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.