[ nice-Feature Requests-1445071 ] Introduce * (star) for declaring lists
"SourceForge.net" <[email protected]> Tue, 07 Mar 2006 11:58:06 -0800
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Feature Requests item #1445071, was opened at 2006-03-07 11:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1445071&group_id=12788
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: nicedoc
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Francis Barber (fbarber)
Summary: Introduce * (star) for declaring lists
Initial Comment:
Nice already introduced the ? character for declaring
an option type. Like in DTD, you could introduce the
* for declaring a 'many' type.
Something like this:
class Order {
}
class Customer {
// a customer has many orders.
// this expands to:
// List<Order> _orderList;
Order* _orderList;
// Beside List, a set of items could also be
// addressed.
// this expands to:
// Set<Order> _orderSet;
Order% _orderSet;
}
One would say: "Eeek, this looks like C". And
surprise: It *is* C.
Since in C, a pointer to an order is identical with
an array of orders.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1445071&group_id=12788
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642