Thank you for the quick reply. Actually I tried that backtick trick, but for 
some reason I trusted my IDE/linter whining about it and didn't properly 
compile it for testing. But it is good to know that it should and will work.

As you said, it loses the whole point of using the question mark when one has 
to use the backticks for calling! :) Also I'm assuming I can call it like a 
method call even with the backticks like this:
    
    
    proc youOk?(post: ForumMessage): bool = not ("penis" in post.text)
    
    let myMessage: ForumMessage = initForumMessage(poster:"wiltzutm", text: 
"*frustrated raging for not getting the question mark working*... penis")
    
    # This line here:
    if myMessage.`youOk?`:
        echo "I'm fine, how about you?"
    else:
        echo "I feel terribly ashamed for not fullfilling the criteria of this 
forum and common decency. For that I'm sorry! I'm also eternally thankful that 
despite my rudeness you still answered to my message."
    
    
    
    Run

Reply via email to