Thread overview | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 04, 2008 arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
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. |
September 04, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick B | 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 |
September 04, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 |
September 04, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick B | 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 |
September 04, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | 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
|
September 08, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | 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
|
September 08, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick B | 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.
|
September 08, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | 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 !
|
September 08, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick B | 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.
|
September 08, 2008 Re: arrays and pointers & Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick B | 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 |
Copyright © 1999-2021 by the D Language Foundation