Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Legal symbol names and generics

Thread Tools

Legal symbol names and generics

Hugh Sasse
Posts: n/a
On Fri, 25 Nov 2005, John Lam wrote:

> So rewriting my original example (which I now realize has the constructor
> parameter in the wrong place) [1]
> channel = ChannelFactory[IOutputChannel].new('
> This does, however clash with static indexers in the CLR since I would like
> to preserve the [] indexer semantics in the bridge ... thoughts?
> Thanks!
> -John

I've come in on the middle of this and don't know how to interpret
CLR (comp.lang.ruby? C++ Language RTTI? Something to do with .NET (I
forget what)?). So, I find myself wondering why not:

flickstem = "http:://"
channel ="IOChannel" => flickrstem,
"CreateChannel" =>
"FinancialDrain" =>
"BritTerrestrialChannels" => ["BBC1",
"BBC2", "ITV1", "Channel4", "five"])

where ChannelSweatshop is a big, smokey factory with lots of worker
methods to produce your channels for you, with rather of lot of
flexibility. And all those args will end up in a single hash.

Or pass a block to the constructor, instance_eval it, and call the
channels into being in tbe block.

But I've probably missed the crucial detail.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(Encryption Package) error: cannot find symbol symbol: class BaseNCode Java 6 08-29-2012 08:33 PM
generics depending on generics Soul VHDL 0 02-02-2009 09:14 AM
Why ":symbol" failed but 'symbol' successed with JRuby 1.0.3? Song Ma Ruby 2 07-20-2008 04:08 AM
Can't convert a generics list of objects into a generics list ofinterfaces Juergen Berchtel Java 1 05-20-2005 02:07 PM
what's differnece between #ifdef symbol and #if defined(symbol) baumann@pan C Programming 1 04-15-2005 08:25 AM