Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 18, 2009 tango version identifiers | ||||
---|---|---|---|---|
| ||||
Does the tango build by any chance set any distinguishing predefined version identifiers? |
September 18, 2009 Re: tango version identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | On Thu, 17 Sep 2009 23:48:27 -0400, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote: > Does the tango build by any chance set any distinguishing predefined > version identifiers? http://www.dsource.org/projects/tango/docs/current/tango.core.Version.html |
September 18, 2009 Re: tango version identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | Steven Schveighoffer wrote: > On Thu, 17 Sep 2009 23:48:27 -0400, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote: > >> Does the tango build by any chance set any distinguishing predefined version identifiers? > > http://www.dsource.org/projects/tango/docs/current/tango.core.Version.html I was thinking more along the lines of version(Special_Tango_Version){ *special tango behavior* }else{ *special phobos behavior* } |
September 18, 2009 Re: tango version identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | On Fri, 18 Sep 2009 10:23:38 -0400, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote:
> Steven Schveighoffer wrote:
>> On Thu, 17 Sep 2009 23:48:27 -0400, Ellery Newcomer
>> <ellery-newcomer@utulsa.edu> wrote:
>>
>>> Does the tango build by any chance set any distinguishing predefined
>>> version identifiers?
>>
>> http://www.dsource.org/projects/tango/docs/current/tango.core.Version.html
>
> I was thinking more along the lines of
>
> version(Special_Tango_Version){
> *special tango behavior*
> }else{
> *special phobos behavior*
> }
Typically, if you have installed your tango lib properly, the compiler configuration defines "Tango" as a version identifier you can use to distinguish Tango from Phobos.
So the above code would look like
version(Tango){
...
}else{
...
}
-Steve
|
September 18, 2009 Re: tango version identifiers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | Steven Schveighoffer wrote:
> On Fri, 18 Sep 2009 10:23:38 -0400, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote:
>
>> Steven Schveighoffer wrote:
>>> On Thu, 17 Sep 2009 23:48:27 -0400, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote:
>>>
>>>> Does the tango build by any chance set any distinguishing predefined version identifiers?
>>>
>>> http://www.dsource.org/projects/tango/docs/current/tango.core.Version.html
>>>
>>
>> I was thinking more along the lines of
>>
>> version(Special_Tango_Version){
>> *special tango behavior*
>> }else{
>> *special phobos behavior*
>> }
>
> Typically, if you have installed your tango lib properly, the compiler configuration defines "Tango" as a version identifier you can use to distinguish Tango from Phobos.
>
> So the above code would look like
>
> version(Tango){
> ...
> }else{
> ...
> }
>
> -Steve
Excellent.
Thanks * 2!
|
Copyright © 1999-2021 by the D Language Foundation