Skip to content

Commit c763115

Browse files
committed
notes
1 parent 510ce34 commit c763115

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEXT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ more on errors:
8080
+ print warning when bind statement is repeated
8181
- provide binding from the command-line (but how)
8282

83+
- reflection: allow assigning BCL int to Go float64, with an implicit conversion
84+
8385
+ parse block names as idents and reuse them in bind statement
8486
- make it an option (possibly default)
8587

reflect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func copyBlock(v reflect.Value, block Block) error {
121121
}
122122

123123
if st, bt := f.Type, vx.Type(); !bt.AssignableTo(st) {
124+
// todo: implicit conversion of a BCL int to Go float64
124125
return fmt.Errorf(
125126
"type mismatch for the mapped field: struct.%s has %s, block.%s has %s",
126127
f.Name, st, name, bt,

0 commit comments

Comments
 (0)