Re: How can I make this work?

2021-02-27 Thread evilrat via Digitalmars-d-learn
On Sunday, 28 February 2021 at 07:05:27 UTC, Jack wrote: I'm using a windows callback function where the user-defined value is passed thought a LPARAM argument type. I'd like to pass my D array then access it from that callback function. How is the casting from LPARAM to my type array done in t

How can I make this work?

2021-02-27 Thread Jack via Digitalmars-d-learn
I'm using a windows callback function where the user-defined value is passed thought a LPARAM argument type. I'd like to pass my D array then access it from that callback function. How is the casting from LPARAM to my type array done in that case? for example, I need something like this to wor

Re: vibe.d selectively include attribute into tag using diet template

2021-02-27 Thread JG via Digitalmars-d-learn
On Saturday, 27 February 2021 at 19:12:55 UTC, Steven Schveighoffer wrote: Yes, if you assign a boolean value to it directly, then if true, the attribute is included, if not, it's not. e.g.: tag(attribute=booleanVariable) Note the lack of quotes. Thank you very much for this. If you use

Re: vibe.d selectively include attribute into tag using diet template

2021-02-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/27/21 12:48 PM, JG wrote: Hi, I know that one can do the following: tag(attribute='#{dexpression}') But, is there a way to deal with attributes that don't get assigned values. That is, is there a way to produce or depending on a boolean variable? Of course one can do: - if (booleanVaria

vibe.d selectively include attribute into tag using diet template

2021-02-27 Thread JG via Digitalmars-d-learn
Hi, I know that one can do the following: tag(attribute='#{dexpression}') But, is there a way to deal with attributes that don't get assigned values. That is, is there a way to produce or depending on a boolean variable? Of course one can do: - if (booleanVariable) tag(attribute) include