Am I doing it wrong?

Emil Madsen sovende at gmail.com
Sun Oct 3 14:40:08 PDT 2010


So I've been told, but havn't been able to find it, so I rechecked, and
there it was, apperently I'm getting blind >.<
I'll make sure not to pollute this mailing list with these questions again
then :) - Thanks once again

On 3 October 2010 23:28, Ali Çehreli <acehreli at yahoo.com> wrote:

> Emil Madsen wrote:
>
>> ah ofc! I shoulda know :) - So I were doing it wrong :)
>>
>
> Thanks for the question; I learned something too. :)
>
> But in case you don't already know, there is also the D.learn newsgroup.
> This question might be more useful there.
>
> Ali
>
>  Say I'm doing that enum a = calcPrimes();
>> then a will be an enum with 1 element, that I can use as an int right?
>> - or is there something special to be aware of?
>>
>> On 3 October 2010 13:20, Torarin <torarind at gmail.com> wrote:
>>
>>  2010/10/3 Emil Madsen <sovende at gmail.com>:
>>>
>>>> Well the result is assigned to an immutable int, shouldn't that be a
>>>>
>>> compile
>>>
>>>> const too?
>>>>
>>> Immutable means that the variable, or the memory it points to, will
>>> not change. You can still assign run-time values to it:
>>> void main(string[] args)
>>> {
>>>  immutable string a = args[0];
>>>  writeln(a);
>>> }
>>>
>>>
>>
>>
>>


-- 
// Yours sincerely
// Emil 'Skeen' Madsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101003/d8566e44/attachment.html>


More information about the Digitalmars-d mailing list