www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - arrays and pointers & Tango

reply Nick B <nick.barbalich gmail.com> writes:
I would like to create a dynamic array, of say, 10 strings.

I would like to use pointers if possible, to show the relationships 
between the strings, like as follows:

a[1] to a[2]
a[1] to a[3]
a[1] to a[4]
a[1] to a[5] ......

snip
a[2] to a[3]
a[2] to a[4]
a[2] to a[5] ......

snip
a[3] to a[4]
a[3] to a[5]  etc etc.

Is this possible using Tango ?

thanks

D newbie.
Sep 04 2008
parent reply bearophile <bearophileHUGS lycos.com> writes:
Nick B:
 I would like to create a dynamic array, of say, 10 strings.
In D by default strings are dynamic arrays of characters. You can also use normal C strings, with a \0 at the end, using the appropriate C string functions, but then you have to be careful when you print them, etc.
 I would like to use pointers if possible,
If this means you want to use C-like pointers to arrays of chars you can define it like this: char*[] arr; But in most situations you don't want that.
 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity. Bye, bearophile
Sep 04 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
bearophile wrote:
 Nick B:
 
 But in most situations you don't want that.
 
 
 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity. where can i find the #d.tango IRC channel ? What tool do I use to
access it ? when are most people on the IRC channel ? thanks
Sep 04 2008
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Nick B wrote:

 bearophile wrote:
 Nick B:
 
 But in most situations you don't want that.
 
 
 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Sep 04 2008
next sibling parent "Bill Baxter" <wbaxter gmail.com> writes:
On Fri, Sep 5, 2008 at 4:58 AM, Lars Ivar Igesund <larsivar igesund.net> wrote:

  >  where can i find the #d.tango IRC channel ?  What tool do I use to
 access it ?   when are most people on the IRC channel ?

 thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Or use mibbit.com, a web front end for irc. It's great if you don't want to bother downloading and installing a program which you may seldom use anyway. --bb
Sep 04 2008
prev sibling parent reply Nick B <nick.barbalich gmail.com> writes:
Lars Ivar Igesund wrote:
 Nick B wrote:
 
 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Sep 08 2008
next sibling parent reply "Denis Koroskin" <2korden gmail.com> writes:
On Mon, 08 Sep 2008 15:19:25 +0400, Nick B <nick.barbalich gmail.com>  
wrote:

 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
Sep 08 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
Denis Koroskin wrote:
 On Mon, 08 Sep 2008 15:19:25 +0400, Nick B <nick.barbalich gmail.com> 
 wrote:
 
 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
does the channel have a number or something ? there are so many !
Sep 08 2008
next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Mon, 08 Sep 2008 15:47:35 +0400, Nick B <nick.barbalich gmail.com>  
wrote:

 Denis Koroskin wrote:
 On Mon, 08 Sep 2008 15:19:25 +0400, Nick B <nick.barbalich gmail.com>  
 wrote:

 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
does the channel have a number or something ? there are so many !
It has a name: `d.tango'. Join `d' also.
Sep 08 2008
prev sibling parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Nick B wrote:

 Denis Koroskin wrote:
 On Mon, 08 Sep 2008 15:19:25 +0400, Nick B <nick.barbalich gmail.com>
 wrote:
 
 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
does the channel have a number or something ? there are so many !
You're in the correct channel, but wrong network/server. Connect to irc.freenode.org instead of undernet. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Sep 08 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
Lars Ivar Igesund wrote:
 Nick B wrote:
 
 Denis Koroskin wrote:
 On Mon, 08 Sep 2008 15:19:25 +0400, Nick B <nick.barbalich gmail.com>
 wrote:

 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ? regards Nick B y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
does the channel have a number or something ? there are so many !
You're in the correct channel, but wrong network/server. Connect to irc.freenode.org instead of undernet.
thanks again. I will try again tomorrow, as its getting late here. Its after midnight.
Sep 08 2008
parent torhu <no spam.invalid> writes:
Nick B wrote:
 Lars Ivar Igesund wrote:
 Nick B wrote:
 y
Try getting the list of existing channels and pick d.tango from there. There is 56 user in the channel right now.
does the channel have a number or something ? there are so many !
You're in the correct channel, but wrong network/server. Connect to irc.freenode.org instead of undernet.
thanks again. I will try again tomorrow, as its getting late here. Its after midnight.
Here's a mibbit.com link to get you started: http://tinyurl.com/6jpta8 Choose a nickname, and you'll be launched into #D and #d.tango channels.
Sep 09 2008
prev sibling parent reply Sean Kelly <sean invisibleduck.org> writes:
Nick B wrote:
 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ?
Make sure you connect to the FreeNode IRC network. I think mIRC picks some other network by default. Sean
Sep 08 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
can someone tell me the auth requirements.  I am getting the following 
message "irc.freenode.org *** - no identd (auth) response "
Can someone tell me how to set up this up correctly ?
thanks
Nick B
Sean Kelly wrote:
 Nick B wrote:
 Lars Ivar Igesund wrote:
 Nick B wrote:

 bearophile wrote:
 Nick B:
 But in most situations you don't want that.


 to show the relationships between the strings, like as follows:
I don't understand.
 Is this possible using Tango ?
I think Tango or Phobos matter little for this, but I can't be sure because I haven't understood what you want. You can also try the #d or #d.tango IRC channels, where you can ask things with more interactivity.
> where can i find the #d.tango IRC channel ? What tool do I use to access it ? when are most people on the IRC channel ? thanks
Use an IRC client - for example mIRC or xchat. Search and you will find a multitude of options. Connect to irc.freenode.org, and when there join the #d.tango channel. You will find people there all day round, but European and US day/evening time is probably the most active.
Lars I did as you suggested. I have downloaded mIRC and installed it, but when I installed it and go to #d.tango there is no one there ! This may because of the difference in time zone, living in New Zealand. This means I'm 20 hours behind california, 17 hours behind new york, 12 hours behind england, and 11 hours behind Germany. It does not make it easy. Is there any way to open a session and leave it open, so that I can at least see what is being discussed. Also, how can i verify that I am at the right place ?
Make sure you connect to the FreeNode IRC network. I think mIRC picks some other network by default. Sean
Sep 09 2008
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Nick B wrote:

 can someone tell me the auth requirements.  I am getting the following
 message "irc.freenode.org *** - no identd (auth) response "
 Can someone tell me how to set up this up correctly ?
 thanks
 Nick B
There are no auth requirements? Which client are you using now? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Sep 09 2008
next sibling parent Tomas Lindquist Olsen <tomas famolsen.dk> writes:
Lars Ivar Igesund wrote:
 Nick B wrote:
 
 can someone tell me the auth requirements.  I am getting the following
 message "irc.freenode.org *** - no identd (auth) response "
 Can someone tell me how to set up this up correctly ?
 thanks
 Nick B
There are no auth requirements? Which client are you using now?
I think he's talking about this: http://en.wikipedia.org/wiki/Ident it's not critical, it just takes a bit longer to connect to the network if they don't get a response. -Tomas
Sep 09 2008
prev sibling parent reply Nick B <nick.barbalich gmail.com> writes:
i am using mIRC ver 6.34.  I am getting a invalid user name message , 
then I get disconnected.
  does your Nickname have to match your email account ?

Lars Ivar Igesund wrote:
 Nick B wrote:
 
 can someone tell me the auth requirements.  I am getting the following
 message "irc.freenode.org *** - no identd (auth) response "
 Can someone tell me how to set up this up correctly ?
 thanks
 Nick B
There are no auth requirements? Which client are you using now?
Sep 09 2008
next sibling parent bearophile <bearophileHUGS lycos.com> writes:
Nick B:
 i am using mIRC ver 6.34.  I am getting a invalid user name message , 
 then I get disconnected.
I have suggested you to use IRC because it's easy as a pie, you set up 2 parameters and you go. Maybe it's better for you to express your problems here, instead... Bye, bearophile
Sep 09 2008
prev sibling parent reply "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Tue, Sep 9, 2008 at 7:01 AM, Nick B <nick.barbalich gmail.com> wrote:
 i am using mIRC ver 6.34.  I am getting a invalid user name message , then I
 get disconnected.
  does your Nickname have to match your email account ?
No, in fact that's probably the reason you're getting an invalid username message, it probably doesn't like signs. Just pick a nice, short, alphanumeric name, like NickBarb or something.
Sep 09 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
I am now getting the message [10053 - software caused connection abort.]
any suggestions on what may be causing this?

Jarrett Billingsley wrote:
 On Tue, Sep 9, 2008 at 7:01 AM, Nick B <nick.barbalich gmail.com> wrote:
 i am using mIRC ver 6.34.  I am getting a invalid user name message , then I
 get disconnected.
  does your Nickname have to match your email account ?
No, in fact that's probably the reason you're getting an invalid username message, it probably doesn't like signs. Just pick a nice, short, alphanumeric name, like NickBarb or something.
Sep 15 2008
parent reply "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Mon, Sep 15, 2008 at 7:42 AM, Nick B <nick.barbalich gmail.com> wrote:
 I am now getting the message [10053 - software caused connection abort.]
 any suggestions on what may be causing this?
Wow, I've never heard of anyone having so many problems with IRC. Just.. try mibbit (http://www.mibbit.com/).
Sep 15 2008
parent reply Nick B <nick.barbalich gmail.com> writes:
thanks for the suggestion.  I will give it a go.

Nick

Jarrett Billingsley wrote:
 On Mon, Sep 15, 2008 at 7:42 AM, Nick B <nick.barbalich gmail.com> wrote:
 I am now getting the message [10053 - software caused connection abort.]
 any suggestions on what may be causing this?
Wow, I've never heard of anyone having so many problems with IRC. Just.. try mibbit (http://www.mibbit.com/).
Sep 15 2008
parent "Denis Koroskin" <2korden gmail.com> writes:
On Tue, 16 Sep 2008 10:53:30 +0400, Nick B <nick.barbalich gmail.com>  
wrote:

 thanks for the suggestion.  I will give it a go.

 Nick

 Jarrett Billingsley wrote:
 On Mon, Sep 15, 2008 at 7:42 AM, Nick B <nick.barbalich gmail.com>  
 wrote:
 I am now getting the message [10053 - software caused connection  
 abort.]
 any suggestions on what may be causing this?
Wow, I've never heard of anyone having so many problems with IRC. Just.. try mibbit (http://www.mibbit.com/).
Or you can run Opera and type irc://irc.freenode.org The wizard will ask you for a name, mail and nick and that's all, you are in! BTW, Opera may also be used as a newsreader client, and it is very good at it. Try writing news://digitalmars.com
Sep 16 2008