| well done! (and certainly useful)
in git?
joachim
Am 29.01.2012 18:49, schrieb Tito Latini:
> With 6 lines of code I have
>
> instr 1
> if strcmp("foo", "foo") == 0 then
> prints "well done ?\n"
> else
> prints "noooooooooooooo\n"
> endif
>
> print strcmp("foo", "foo")
> print strcmp("foo", "bar")
> printk2 strcmpk("foo", "foo")
> printk2 strcmpk("foo", "bar")
> endin
>
> ...
> new alloc for instr 1:
> well done ?
> instr 1: #i1 = 0.000
> instr 1: #i2 = 1.000
> i1 0.00000
> i1 1.00000
> ...
>
> Is it useful ?
>
> tito
>
> On Sun, Jan 29, 2012 at 01:37:51AM +0000, Rory Walsh wrote:
>> That would be nice!
>>
>> On 28 January 2012 21:35, joachim heintz wrote:
>>> hi -
>>>
>>> is there any chance to come to a direct string comparision with the new
>>> parser?
>>> for instance:
>>>
>>>
>>>
>>> instr cmp
>>> if "a" == "a" then
>>> prints "well done\n"
>>> endif
>>> endin
>>>
>>>
>>> i "cmp" 0 1
>>>
>>>
>>>
>>> instead of:
>>>
>>>
>>>
>>> instr cmp
>>> i_a strcmp "a", "a"
>>> if i_a == 0 then
>>> prints "well done\n"
>>> endif
>>> endin
>>>
>>>
>>> i "cmp" 0 1
>>>
>>>
>>>
>>> (which is very clumsy if there are many comparisions)
>>>
>>> thanks -
>>>
>>> joachim
>>>
>>> ------------------------------------------------------------------------------
>>> Try before you buy = See our experts in action!
>>> The most comprehensive online learning library for Microsoft developers
>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>>> Metro Style Apps, more. Free future releases when you subscribe now!
>>> http://p.sf.net/sfu/learndevnow-dev2
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |